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