aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/callback_inheritance_test.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-01-26 13:15:30 -0500
committerGitHub <noreply@github.com>2018-01-26 13:15:30 -0500
commit85fcb663363cd27220e8bd3136973cc3408cf7d7 (patch)
tree8521ed5477f475e1de8bcb89b689bbd3b1abeae8 /activesupport/test/callback_inheritance_test.rb
parent8baca31dbe522cb407f0b3b8c8d3d4a6804e5aed (diff)
parentfda1863e1a8c120294c56482631d8254ad6125ff (diff)
downloadrails-85fcb663363cd27220e8bd3136973cc3408cf7d7.tar.gz
rails-85fcb663363cd27220e8bd3136973cc3408cf7d7.tar.bz2
rails-85fcb663363cd27220e8bd3136973cc3408cf7d7.zip
Merge pull request #31786 from composerinteralia/respond-to-tests
Use respond_to test helpers
Diffstat (limited to 'activesupport/test/callback_inheritance_test.rb')
-rw-r--r--activesupport/test/callback_inheritance_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/callback_inheritance_test.rb b/activesupport/test/callback_inheritance_test.rb
index 67813a749e..015e17deb9 100644
--- a/activesupport/test/callback_inheritance_test.rb
+++ b/activesupport/test/callback_inheritance_test.rb
@@ -164,10 +164,10 @@ end
class DynamicInheritedCallbacks < ActiveSupport::TestCase
def test_callbacks_looks_to_the_superclass_before_running
child = EmptyChild.new.dispatch
- assert !child.performed?
+ assert_not_predicate child, :performed?
EmptyParent.set_callback :dispatch, :before, :perform!
child = EmptyChild.new.dispatch
- assert child.performed?
+ assert_predicate child, :performed?
end
def test_callbacks_should_be_performed_once_in_child_class