webrat/spec/api/reloads_spec.rb
2008-07-25 19:11:56 -04:00

15 lines
336 B
Ruby

require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
describe "reloads" do
before do
@session = Webrat::TestSession.new
@session.response_body = "Hello world"
end
it "should reload the page" do
@session.should_receive(:get).with("/", {}).twice
@session.visits("/")
@session.reloads
end
end