aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/journey/nodes/symbol_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/journey/nodes/symbol_test.rb')
-rw-r--r--actionpack/test/journey/nodes/symbol_test.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/test/journey/nodes/symbol_test.rb b/actionpack/test/journey/nodes/symbol_test.rb
index baf60f40b8..b0622ac71a 100644
--- a/actionpack/test/journey/nodes/symbol_test.rb
+++ b/actionpack/test/journey/nodes/symbol_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require "abstract_unit"
module ActionDispatch
@@ -6,10 +8,10 @@ module ActionDispatch
class TestSymbol < ActiveSupport::TestCase
def test_default_regexp?
sym = Symbol.new "foo"
- assert sym.default_regexp?
+ assert_predicate sym, :default_regexp?
sym.regexp = nil
- assert_not sym.default_regexp?
+ assert_not_predicate sym, :default_regexp?
end
end
end