aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorFranck Verrot <franck@verrot.fr>2011-01-25 23:33:55 +0100
committerSantiago Pastorino <santiago@wyeworks.com>2011-02-02 12:45:14 -0200
commita5b03e9c7af8f539764a66f9bd51b7ebbcb9f57d (patch)
treec78e22a64d431de9daabe9f196edaf49bd3c824e /activerecord/test
parent47315760bc893a48738e6592a0cbb3fef506bcd7 (diff)
downloadrails-a5b03e9c7af8f539764a66f9bd51b7ebbcb9f57d.tar.gz
rails-a5b03e9c7af8f539764a66f9bd51b7ebbcb9f57d.tar.bz2
rails-a5b03e9c7af8f539764a66f9bd51b7ebbcb9f57d.zip
Implement and test private method all_timestamp_attributes_in_model
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test')
-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 62e3a084d0..1c21f0f3b6 100644
--- a/activerecord/test/cases/timestamp_test.rb
+++ b/activerecord/test/cases/timestamp_test.rb
@@ -165,4 +165,9 @@ class TimestampTest < ActiveRecord::TestCase
toy = Toy.first
assert_equal toy.send(:timestamp_attributes_for_update_in_model), [:updated_at]
end
+
+ def test_all_timestamp_attributes_in_model
+ toy = Toy.first
+ assert_equal toy.send(:all_timestamp_attributes_in_model), [:created_at, :updated_at]
+ end
end