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.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/actionpack/test/journey/nodes/symbol_test.rb b/actionpack/test/journey/nodes/symbol_test.rb
new file mode 100644
index 0000000000..b0622ac71a
--- /dev/null
+++ b/actionpack/test/journey/nodes/symbol_test.rb
@@ -0,0 +1,19 @@
+# frozen_string_literal: true
+
+require "abstract_unit"
+
+module ActionDispatch
+ module Journey
+ module Nodes
+ class TestSymbol < ActiveSupport::TestCase
+ def test_default_regexp?
+ sym = Symbol.new "foo"
+ assert_predicate sym, :default_regexp?
+
+ sym.regexp = nil
+ assert_not_predicate sym, :default_regexp?
+ end
+ end
+ end
+ end
+end