webrat/spec/public/reload_spec.rb

11 lines
376 B
Ruby
Raw Normal View History

require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
describe "reloads" do
it "should reload the page with http referer" do
2009-04-08 00:37:26 +00:00
webrat_session.should_receive(:get).with("http://www.example.com/", {})
2008-11-23 05:22:49 +00:00
visit("/")
2009-04-08 00:37:26 +00:00
webrat_session.should_receive(:get).with("http://www.example.com/", {}, {"HTTP_REFERER"=>"http://www.example.com/"})
reload
end
end