Sha256: 8e4ab154ea5beb26203cf0efc8c9d28ab56524cab5082051c29c064574553eff

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 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 sym.default_regexp?

          sym.regexp = nil
          assert_not sym.default_regexp?
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-on-quails-0.1.0 actionpack/test/journey/nodes/symbol_test.rb