aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/module/attribute_accessor_per_thread_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/module/attribute_accessor_per_thread_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/module/attribute_accessor_per_thread_test.rb')
-rw-r--r--activesupport/test/core_ext/module/attribute_accessor_per_thread_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/core_ext/module/attribute_accessor_per_thread_test.rb b/activesupport/test/core_ext/module/attribute_accessor_per_thread_test.rb
index b816fa50e3..af240bc38d 100644
--- a/activesupport/test/core_ext/module/attribute_accessor_per_thread_test.rb
+++ b/activesupport/test/core_ext/module/attribute_accessor_per_thread_test.rb
@@ -121,11 +121,11 @@ class ModuleAttributeAccessorPerThreadTest < ActiveSupport::TestCase
def test_should_not_affect_superclass_if_subclass_set_value
@class.foo = "super"
- assert_equal @class.foo, "super"
+ assert_equal "super", @class.foo
assert_nil @subclass.foo
@subclass.foo = "sub"
- assert_equal @class.foo, "super"
- assert_equal @subclass.foo, "sub"
+ assert_equal "super", @class.foo
+ assert_equal "sub", @subclass.foo
end
end