diff options
author | Franck Verrot <franck@verrot.fr> | 2011-01-25 23:27:27 +0100 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-02 12:44:53 -0200 |
commit | 5178e641750d4e3f8419c8e6cf3ab7e7cb48a880 (patch) | |
tree | 2a69ddff8802abfa008cf1d80d9accf57d7d2064 /activerecord/test | |
parent | 598b32c5812e428f639c9a80b352aec54f059a36 (diff) | |
download | rails-5178e641750d4e3f8419c8e6cf3ab7e7cb48a880.tar.gz rails-5178e641750d4e3f8419c8e6cf3ab7e7cb48a880.tar.bz2 rails-5178e641750d4e3f8419c8e6cf3ab7e7cb48a880.zip |
Added timestamp_attributes_for_create_in_model
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/timestamp_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb index 006266536c..428dfedef2 100644 --- a/activerecord/test/cases/timestamp_test.rb +++ b/activerecord/test/cases/timestamp_test.rb @@ -155,4 +155,9 @@ class TimestampTest < ActiveRecord::TestCase toy = Toy.first assert_equal toy.send(:all_timestamp_attributes), [:created_at, :created_on, :updated_at, :updated_on] end + + def test_timestamp_attributes_for_create_in_model + toy = Toy.first + assert_equal toy.send(:timestamp_attributes_for_create_in_model), [:created_at] + end end |