2008-05-12 03:58:20 +00:00
|
|
|
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
|
|
|
|
|
|
|
|
describe "reloads" do
|
2008-08-20 08:35:57 +00:00
|
|
|
it "should reload the page with http referer" do
|
2009-05-11 20:48:28 +00:00
|
|
|
webrat_session.should_receive(:get).with("/", {})
|
|
|
|
webrat_session.should_receive(:get).with("/", {}, {"HTTP_REFERER"=>"/"})
|
2008-11-23 05:22:49 +00:00
|
|
|
visit("/")
|
2009-01-19 18:40:58 +00:00
|
|
|
reload
|
2008-05-12 03:58:20 +00:00
|
|
|
end
|
|
|
|
end
|