aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-04-19 15:03:28 -0400
committerGitHub <noreply@github.com>2018-04-19 15:03:28 -0400
commit6fec9c27e5563d7c98e123c8d8eb8ef2f0c34b65 (patch)
tree69e4232782e4a499aa018ad3d713ccb57242d043 /actionpack/test/abstract
parentd72990c63abb940108b9957dcac09fe04e93f3d1 (diff)
parenta1ac18671a90869ef81d02f2eafe8104e4eea34f (diff)
downloadrails-6fec9c27e5563d7c98e123c8d8eb8ef2f0c34b65.tar.gz
rails-6fec9c27e5563d7c98e123c8d8eb8ef2f0c34b65.tar.bz2
rails-6fec9c27e5563d7c98e123c8d8eb8ef2f0c34b65.zip
Merge pull request #32605 from composerinteralia/assert-not
Add RuboCop for `assert_not` over `assert !`
Diffstat (limited to 'actionpack/test/abstract')
-rw-r--r--actionpack/test/abstract/callbacks_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/abstract/callbacks_test.rb b/actionpack/test/abstract/callbacks_test.rb
index fdc09bd951..4512ea27b3 100644
--- a/actionpack/test/abstract/callbacks_test.rb
+++ b/actionpack/test/abstract/callbacks_test.rb
@@ -154,7 +154,7 @@ module AbstractController
test "when :except is specified, an after action is not triggered on that action" do
@controller.process(:index)
- assert !@controller.instance_variable_defined?("@authenticated")
+ assert_not @controller.instance_variable_defined?("@authenticated")
end
end
@@ -198,7 +198,7 @@ module AbstractController
test "when :except is specified with an array, an after action is not triggered on that action" do
@controller.process(:index)
- assert !@controller.instance_variable_defined?("@authenticated")
+ assert_not @controller.instance_variable_defined?("@authenticated")
end
end