aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranck Verrot <franck@verrot.fr>2011-01-25 23:20:57 +0100
committerSantiago Pastorino <santiago@wyeworks.com>2011-02-02 12:44:05 -0200
commit6d40d527e896038767272eca3a6357e6998b985e (patch)
treefa9eeb0d2524d0e5123bfdcbc181b889a5264d96
parent4e390720178889c773adb12ea1f073bc035fbe67 (diff)
downloadrails-6d40d527e896038767272eca3a6357e6998b985e.tar.gz
rails-6d40d527e896038767272eca3a6357e6998b985e.tar.bz2
rails-6d40d527e896038767272eca3a6357e6998b985e.zip
Test private method timestamp_attributes_for_create
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
-rw-r--r--activerecord/test/cases/timestamp_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb
index 70c098bc6d..1970bf0a5d 100644
--- a/activerecord/test/cases/timestamp_test.rb
+++ b/activerecord/test/cases/timestamp_test.rb
@@ -140,4 +140,9 @@ class TimestampTest < ActiveRecord::TestCase
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