webrat/spec/api/reloads_spec.rb
2008-05-12 00:58:24 -04:00

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