Sha256: 0da1db87d275978fa8aee6fab7ae1b716f779dde2fab35707c9a715b0aa18f55

Contents?: true

Size: 604 Bytes

Versions: 5

Compression:

Stored size: 604 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 [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
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/aruba-2.0.0/lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-2.0.0 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-1.1.2 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-1.1.1 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-1.1.0 lib/aruba/matchers/path/a_path_matching_pattern.rb