Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test private method all_timestamp_attributes

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information...
commit 598b32c5812e428f639c9a80b352aec54f059a36 1 parent 253f5a1
@franckverrot franckverrot authored spastorino committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 activerecord/test/cases/timestamp_test.rb
View
5 activerecord/test/cases/timestamp_test.rb
@@ -150,4 +150,9 @@ def test_timestamp_attributes_for_update
toy = Toy.first
assert_equal toy.send(:timestamp_attributes_for_update), [:updated_at, :updated_on]
end
+
+ def test_all_timestamp_attributes
+ toy = Toy.first
+ assert_equal toy.send(:all_timestamp_attributes), [:created_at, :created_on, :updated_at, :updated_on]
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.