Sha256: 1b67cda4407fbddc44cb094445fd8f3357dde0c4f9f74a2e9a1fc5a19a1c5866

Contents?: true

Size: 566 Bytes

Versions: 5

Compression:

Stored size: 566 Bytes

Contents

# @!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 [Boolean] 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
RSpec::Matchers.alias_matcher :a_path_matching_pattern, :match

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/matchers/path/a_path_matching_pattern.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-2.2.0 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-2.1.0 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-2.0.1 lib/aruba/matchers/path/a_path_matching_pattern.rb