Sha256: 9c6e1f06866ca0a7feab343c74fc05790cf65546466274393bddcae17edb98ee
Contents?: true
Size: 509 Bytes
Versions: 8
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true require 'test_helper' module CanCanDry class PathRecognizerTest < ActiveSupport::TestCase test 'remove_root_path' do [%w(/path/to/action /prefix/ /prefix/path/to/action), %w(/path/to/action /prefix /prefix/path/to/action), %w(/path / /path), ['/path', '', '/path'], %w(/unknown/path /abc /unknown/path)].each do |s| assert_equal s[0], ::CanCanDry::PathRecognizer.send(:remove_root_path, s[1], s[2]), s end end end end
Version data entries
8 entries across 8 versions & 1 rubygems