Permalink
Browse files

Test private method timestamp_attributes_for_create

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information...
1 parent 4e39072 commit 6d40d527e896038767272eca3a6357e6998b985e @franckverrot franckverrot committed with spastorino Jan 25, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 activerecord/test/cases/timestamp_test.rb
@@ -140,4 +140,9 @@ def test_touching_a_record_touches_parent_record_and_grandparent_record
ensure
Toy.belongs_to :pet
end
+
+ def test_timestamp_attributes_for_create
+ toy = Toy.first
+ assert_equal toy.send(:timestamp_attributes_for_create), [:created_at, :created_on]
+ end
end

0 comments on commit 6d40d52

Please sign in to comment.