Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Test updated_at correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Nov 10, 2010
1 parent 553df79 commit fa7ee7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/attachment_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit fa7ee7c

Please sign in to comment.