webrat/spec/api/reloads_spec.rb

15 lines
332 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
@session.expects(:get).with("/", {}).times(2)
@session.visits("/")
@session.reloads
end
end