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

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("/")
    reload
  end
end

Use reload instead of deprecated reloads in spec
Use reload instead of deprecated reloads in spec
