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.12.0 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.11.2 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.11.1 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.11.0.pre4 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.11.0.pre3 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.11.0.pre2 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.11.0.pre lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.10.2 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.10.1 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.10.0 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.10.0.pre2 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.10.0.pre lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.9.0 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.9.0.pre2 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.9.0.pre lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.8.1 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.8.0 lib/aruba/matchers/path/a_path_matching_pattern.rb
aruba-0.8.0.pre3 lib/aruba/matchers/path/a_path_matching_pattern.rb