Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing time zone error in test

  • Loading branch information...
commit 03f95077010f3a48f48efc6b8d47e43de1a89448 1 parent 640092e
@ryanb ryanb authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/controllers/users_controller_spec.rb
View
2  spec/controllers/users_controller_spec.rb
@@ -80,7 +80,7 @@
@controller.stubs(:current_user).returns(user)
put :publicize, :id => "ignored"
response.should redirect_to(root_url)
- user.reload.publicized_at.to_date.should == Date.today
+ user.reload.publicized_at.to_date.should == Time.zone.now.to_date
end
it "publicize action should remove publicized_at time when asked" do
Please sign in to comment.
Something went wrong with that request. Please try again.