spec/app/controllers/application_spec.rb in relevance-castronaut-0.3.5 vs spec/app/controllers/application_spec.rb in relevance-castronaut-0.3.6
- old
+ new
@@ -33,9 +33,10 @@
headers['Cache-Control'].should == 'no-store'
end
it "sets the Expires header to '5 years ago in rfc2822 format'" do
now = Time.parse("01/01/2008")
+ now.stub!(:-).and_return(now)
Time.stub!(:now).and_return(now)
get_it '/login', :env => { 'REMOTE_ADDR' => '10.0.0.1' }
headers['Expires'].should == "Wed, 01 Jan 2003 00:00:00 -0500"