aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/duration_test.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-12-26 11:04:41 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-12-26 11:04:56 +0900
commita46b2f8911c5730c8c56d487b65f7c5627d334ee (patch)
tree6ec9e97e0fc92e754daae843abaed7a11a281775 /activesupport/test/core_ext/duration_test.rb
parente813a9f8605a5cbb34d3ee218f7fed49c98d5378 (diff)
downloadrails-a46b2f8911c5730c8c56d487b65f7c5627d334ee.tar.gz
rails-a46b2f8911c5730c8c56d487b65f7c5627d334ee.tar.bz2
rails-a46b2f8911c5730c8c56d487b65f7c5627d334ee.zip
assert_equal takes expectation first
Diffstat (limited to 'activesupport/test/core_ext/duration_test.rb')
-rw-r--r--activesupport/test/core_ext/duration_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb
index 6f7f16da5b..fc0dd41d0e 100644
--- a/activesupport/test/core_ext/duration_test.rb
+++ b/activesupport/test/core_ext/duration_test.rb
@@ -196,7 +196,7 @@ class DurationTest < ActiveSupport::TestCase
assert_nothing_raised do
1.minute.times { counter += 1 }
end
- assert_equal counter, 60
+ assert_equal 60, counter
end
def test_as_json
@@ -213,7 +213,7 @@ class DurationTest < ActiveSupport::TestCase
when 1.day
"ok"
end
- assert_equal cased, "ok"
+ assert_equal "ok", cased
end
def test_respond_to