diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-12 20:00:50 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-12 20:00:50 +0900 |
commit | 2b35826389005bdb0af85a4ebb1f0ec213174d13 (patch) | |
tree | 9cbe8da4d50bd291d1f9cd5b7c6a1bd464470914 /activesupport/test/core_ext/duration_test.rb | |
parent | 38b2904f2c9d89868e96edd71c5f3143ca235a88 (diff) | |
download | rails-2b35826389005bdb0af85a4ebb1f0ec213174d13.tar.gz rails-2b35826389005bdb0af85a4ebb1f0ec213174d13.tar.bz2 rails-2b35826389005bdb0af85a4ebb1f0ec213174d13.zip |
Enable `Layout/SpaceBeforeComma` rubocop rule, and fixed more
Follow up of #31390.
Diffstat (limited to 'activesupport/test/core_ext/duration_test.rb')
-rw-r--r-- | activesupport/test/core_ext/duration_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb index b3e0cd8bd0..dbee543644 100644 --- a/activesupport/test/core_ext/duration_test.rb +++ b/activesupport/test/core_ext/duration_test.rb @@ -160,7 +160,7 @@ class DurationTest < ActiveSupport::TestCase end def test_time_plus_duration_returns_same_time_datatype - twz = ActiveSupport::TimeWithZone.new(nil, ActiveSupport::TimeZone["Moscow"] , Time.utc(2016, 4, 28, 00, 45)) + twz = ActiveSupport::TimeWithZone.new(nil, ActiveSupport::TimeZone["Moscow"], Time.utc(2016, 4, 28, 00, 45)) now = Time.now.utc %w( second minute hour day week month year ).each do |unit| assert_equal((now + 1.send(unit)).class, Time, "Time + 1.#{unit} must be Time") |