webrat/spec/api/reloads_spec.rb

15 lines
336 B
Ruby
Raw Normal View History

require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
describe "reloads" do
before do
@session = Webrat::TestSession.new
2008-05-12 04:23:37 +00:00
@session.response_body = "Hello world"
end
it "should reload the page" do
2008-07-25 23:11:56 +00:00
@session.should_receive(:get).with("/", {}).twice
@session.visits("/")
@session.reloads
end
end