aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-01-03 04:34:43 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-01-03 04:34:43 +0900
commit77ff9a0adbd1318b45203a76c64561b115245603 (patch)
tree85ba92d44decf75d669b68f937e19f58bdc8517a /activerecord/test
parentb177427d977b21cb18d2eca688539565e8970324 (diff)
downloadrails-77ff9a0adbd1318b45203a76c64561b115245603.tar.gz
rails-77ff9a0adbd1318b45203a76c64561b115245603.tar.bz2
rails-77ff9a0adbd1318b45203a76c64561b115245603.zip
Push `current_time_from_proper_timezone` and timestamp attributes methods up to class method
Actually these methods don't need instantiation.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/timestamp_test.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb
index 7327926706..7766a74612 100644
--- a/activerecord/test/cases/timestamp_test.rb
+++ b/activerecord/test/cases/timestamp_test.rb
@@ -430,21 +430,6 @@ class TimestampTest < ActiveRecord::TestCase
assert_not_equal person.born_at, nil
end
- def test_timestamp_attributes_for_create
- toy = Toy.first
- assert_equal ["created_at", "created_on"], toy.send(:timestamp_attributes_for_create)
- end
-
- def test_timestamp_attributes_for_update
- toy = Toy.first
- assert_equal ["updated_at", "updated_on"], toy.send(:timestamp_attributes_for_update)
- end
-
- def test_all_timestamp_attributes
- toy = Toy.first
- assert_equal ["created_at", "created_on", "updated_at", "updated_on"], toy.send(:all_timestamp_attributes)
- end
-
def test_timestamp_attributes_for_create_in_model
toy = Toy.first
assert_equal ["created_at"], toy.send(:timestamp_attributes_for_create_in_model)