webrat/spec/api/reload_spec.rb
2008-11-23 00:48:42 -05:00

11 lines
311 B
Ruby

require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
describe "reloads" do
it "should reload the page with http referer" do
webrat_session.should_receive(:get).with("/", {})
webrat_session.should_receive(:get).with("/", {}, {"HTTP_REFERER"=>"/"})
visit("/")
reloads
end
end