Permalink
Browse files

Test updated_at correctly

  • Loading branch information...
1 parent 553df79 commit fa7ee7caf4255c16ac52bbe28afd01c4d30fe0ec @jyurek jyurek committed Nov 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/attachment_test.rb
View
@@ -703,7 +703,7 @@ def do_after_all; end
now = Time.now
Time.stubs(:now).returns(now)
@dummy.avatar = @file
- assert now, @dummy.avatar.updated_at
+ assert_equal now.to_i, @dummy.avatar.updated_at.to_i
end
should "return nil when reloaded and sent #avatar_updated_at" do

0 comments on commit fa7ee7c

Please sign in to comment.