diff options
author | Franck Verrot <franck@verrot.fr> | 2011-01-25 23:23:19 +0100 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-02 12:44:41 -0200 |
commit | 598b32c5812e428f639c9a80b352aec54f059a36 (patch) | |
tree | 266cf1c786dfb888089e602ae47bd5a446a87598 /activerecord/test/cases | |
parent | 253f5a15f42720ddc2cf6cd7e982fe3e0dc65f52 (diff) | |
download | rails-598b32c5812e428f639c9a80b352aec54f059a36.tar.gz rails-598b32c5812e428f639c9a80b352aec54f059a36.tar.bz2 rails-598b32c5812e428f639c9a80b352aec54f059a36.zip |
Test private method all_timestamp_attributes
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test/cases')
-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 26c04c47b9..006266536c 100644 --- a/activerecord/test/cases/timestamp_test.rb +++ b/activerecord/test/cases/timestamp_test.rb @@ -150,4 +150,9 @@ class TimestampTest < ActiveRecord::TestCase 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 |