aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/module/anonymous_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/core_ext/module/anonymous_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/core_ext/module/anonymous_test.rb')
-rw-r--r--activesupport/test/core_ext/module/anonymous_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/core_ext/module/anonymous_test.rb b/activesupport/test/core_ext/module/anonymous_test.rb
index 606f22c9b5..e03c217015 100644
--- a/activesupport/test/core_ext/module/anonymous_test.rb
+++ b/activesupport/test/core_ext/module/anonymous_test.rb
@@ -5,12 +5,12 @@ require "active_support/core_ext/module/anonymous"
class AnonymousTest < ActiveSupport::TestCase
test "an anonymous class or module are anonymous" do
- assert Module.new.anonymous?
- assert Class.new.anonymous?
+ assert_predicate Module.new, :anonymous?
+ assert_predicate Class.new, :anonymous?
end
test "a named class or module are not anonymous" do
- assert !Kernel.anonymous?
- assert !Object.anonymous?
+ assert_not_predicate Kernel, :anonymous?
+ assert_not_predicate Object, :anonymous?
end
end