From 77ff9a0adbd1318b45203a76c64561b115245603 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Tue, 3 Jan 2017 04:34:43 +0900 Subject: Push `current_time_from_proper_timezone` and timestamp attributes methods up to class method Actually these methods don't need instantiation. --- activerecord/test/cases/timestamp_test.rb | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'activerecord/test/cases/timestamp_test.rb') 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) -- cgit v1.2.3