2017-07-24 16:20:53 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-08-06 12:54:50 -04:00
|
|
|
require "abstract_unit"
|
2012-12-19 15:54:47 -05:00
|
|
|
|
|
|
|
module ActionDispatch
|
|
|
|
module Journey
|
|
|
|
module Nodes
|
2012-12-31 12:36:30 -05:00
|
|
|
class TestSymbol < ActiveSupport::TestCase
|
2012-12-19 15:54:47 -05:00
|
|
|
def test_default_regexp?
|
2015-08-18 18:20:19 -04:00
|
|
|
sym = Symbol.new "foo"
|
2018-01-25 18:14:09 -05:00
|
|
|
assert_predicate sym, :default_regexp?
|
2012-12-19 15:54:47 -05:00
|
|
|
|
|
|
|
sym.regexp = nil
|
2018-01-25 18:14:09 -05:00
|
|
|
assert_not_predicate sym, :default_regexp?
|
2012-12-19 15:54:47 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|