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
|
2008-11-23 05:22:49 +00:00
|
|
|
webrat_session.should_receive(:get).with("/", {})
|
|
|
|
webrat_session.should_receive(:get).with("/", {}, {"HTTP_REFERER"=>"/"})
|
|
|
|
visit("/")
|
|
|
|
reloads
|
2008-05-12 03:58:20 +00:00
|
|
|
end
|
|
|
|
end
|