aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-04-04 18:19:35 -0400
committerGitHub <noreply@github.com>2018-04-04 18:19:35 -0400
commitfe4e9d4c5d82806fdaf28c87c731132f81f0ac3e (patch)
tree7d96907def4d04a69495206f6e806c0590ad835e /activesupport
parent826b17cd8a4f0416fd6b8451199fd0f1fa20f417 (diff)
parentc1ceafc9d128b430f27d43d98369683c59c33021 (diff)
downloadrails-fe4e9d4c5d82806fdaf28c87c731132f81f0ac3e.tar.gz
rails-fe4e9d4c5d82806fdaf28c87c731132f81f0ac3e.tar.bz2
rails-fe4e9d4c5d82806fdaf28c87c731132f81f0ac3e.zip
Merge pull request #32441 from composerinteralia/refute-not
Add custom RuboCop for `assert_not` over `refute`
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/dependencies_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb
index c0c4c4cac5..2ca21f215e 100644
--- a/activesupport/test/dependencies_test.rb
+++ b/activesupport/test/dependencies_test.rb
@@ -223,7 +223,7 @@ class DependenciesTest < ActiveSupport::TestCase
Timeout.timeout(0.1) do
# Remove the constant, as if Rails development middleware is reloading changed files:
ActiveSupport::Dependencies.remove_unloadable_constants!
- refute defined?(AnotherConstant::ReloadError)
+ assert_not defined?(AnotherConstant::ReloadError)
end
# Change the file, so that it is **correct** this time:
@@ -231,7 +231,7 @@ class DependenciesTest < ActiveSupport::TestCase
# Again: Remove the constant, as if Rails development middleware is reloading changed files:
ActiveSupport::Dependencies.remove_unloadable_constants!
- refute defined?(AnotherConstant::ReloadError)
+ assert_not defined?(AnotherConstant::ReloadError)
# Now, reload the _fixed_ constant:
assert ConstantReloadError