Sha256: 4541fb0bb1aa7cd4b98c652669c457d272fc8f11525c0c4a770fd179d8bcbd19

Contents?: true

Size: 397 Bytes

Versions: 47

Compression:

Stored size: 397 Bytes

Contents

# 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

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
jets-1.5.6 vendor/rails/actionpack/test/journey/nodes/symbol_test.rb
jets-1.5.5 vendor/rails/actionpack/test/journey/nodes/symbol_test.rb
jets-1.5.4 vendor/rails/actionpack/test/journey/nodes/symbol_test.rb
jets-1.5.3 vendor/rails/actionpack/test/journey/nodes/symbol_test.rb
jets-1.5.2 vendor/rails/actionpack/test/journey/nodes/symbol_test.rb
jets-1.5.1 vendor/rails/actionpack/test/journey/nodes/symbol_test.rb
jets-1.5.0 vendor/rails/actionpack/test/journey/nodes/symbol_test.rb