diff options
author | claudiob <claudiob@gmail.com> | 2014-10-29 18:18:48 -0700 |
---|---|---|
committer | claudiob <claudiob@gmail.com> | 2014-10-30 08:48:32 -0700 |
commit | 64b09823e6a6b1e19218d3fd815bb65cd2e44f1e (patch) | |
tree | c7eefcd011dade1060557a77dae72283851f39ee /activerecord/test | |
parent | 7cf4d5465deb48f448000e9b484a150261e1054f (diff) | |
download | rails-64b09823e6a6b1e19218d3fd815bb65cd2e44f1e.tar.gz rails-64b09823e6a6b1e19218d3fd815bb65cd2e44f1e.tar.bz2 rails-64b09823e6a6b1e19218d3fd815bb65cd2e44f1e.zip |
Remove redundant `to_s` in interpolation
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index f5be8a044b..80ac57ec7c 100644 --- a/activerecord/test/cases/helper.rb +++ b/activerecord/test/cases/helper.rb @@ -95,7 +95,7 @@ EXPECTED_TIME_ZONE_AWARE_ATTRIBUTES = false def verify_default_timezone_config if Time.zone != EXPECTED_ZONE $stderr.puts <<-MSG -\n#{self.to_s} +\n#{self} Global state `Time.zone` was leaked. Expected: #{EXPECTED_ZONE} Got: #{Time.zone} @@ -103,7 +103,7 @@ def verify_default_timezone_config end if ActiveRecord::Base.default_timezone != EXPECTED_DEFAULT_TIMEZONE $stderr.puts <<-MSG -\n#{self.to_s} +\n#{self} Global state `ActiveRecord::Base.default_timezone` was leaked. Expected: #{EXPECTED_DEFAULT_TIMEZONE} Got: #{ActiveRecord::Base.default_timezone} @@ -111,7 +111,7 @@ def verify_default_timezone_config end if ActiveRecord::Base.time_zone_aware_attributes != EXPECTED_TIME_ZONE_AWARE_ATTRIBUTES $stderr.puts <<-MSG -\n#{self.to_s} +\n#{self} Global state `ActiveRecord::Base.time_zone_aware_attributes` was leaked. Expected: #{EXPECTED_TIME_ZONE_AWARE_ATTRIBUTES} Got: #{ActiveRecord::Base.time_zone_aware_attributes} |