Sha256: 6c07aa450c8baf6863034da1459fc2f371d230546d37e197c8028e2155aeba9e

Contents?: true

Size: 673 Bytes

Versions: 38

Compression:

Stored size: 673 Bytes

Contents

require 'rspec/expectations/version'

# @!method a_path_matching_pattern(/pattern/)
#   This matchers checks if <path> matches pattern. `pattern` can be a string,
#   regexp or an RSpec matcher.
#
#   @param [String, Regexp, Matcher] pattern
#     Specifies the pattern
#
#   @return [TrueClass, FalseClass] The result
#
#     false:
#     * if pattern does not match
#
#     true:
#     * if pattern matches
#
#   @example Use matcher with regexp
#
#     RSpec.describe do
#       it { expect(files).to include a_path_matching_pattern /asdf/ }
#     end
if RSpec::Expectations::Version::STRING >= '3.0'
  RSpec::Matchers.alias_matcher :a_path_matching_pattern, :match
end

Version data entries

38 entries across 38 versions & 3 rubygems

Version Path
aruba-0.14.14 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.13 lib/aruba/matchers/path/a_path_matching_pattern.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/aruba-0.14.12/lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.12 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.11 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.10 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.9 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.8 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.7 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.6 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.5 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.4 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.3 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-1.0.0.pre.alpha.2 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-1.0.0.pre.alpha.1 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-win-fix-0.14.2 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.2 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.1 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.14.0 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.13.0 lib/aruba/matchers/path/a_path_matching_pattern.rb