Sha256: d48745fb60510560e1c281de61c488b154c9c79583ae8309ac32925d23cd0957

Contents?: true

Size: 164 Bytes

Versions: 29

Compression:

Stored size: 164 Bytes

Contents

RSpec::Matchers.define :match_contents do |regexp|
  match do |filename|
    contents = IO.read(File.join(project_path, filename))
    contents =~ regexp
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
suspenders-1.55.1 spec/support/match_contents_matcher.rb
suspenders-1.55.0 spec/support/match_contents_matcher.rb
suspenders-1.54.1 spec/support/match_contents_matcher.rb
suspenders-1.54.0 spec/support/match_contents_matcher.rb
welaika-suspenders-3.0 spec/support/match_contents_matcher.rb
welaika-suspenders-2.36 spec/support/match_contents_matcher.rb
welaika-suspenders-2.35 spec/support/match_contents_matcher.rb
welaika-suspenders-2.34 spec/support/match_contents_matcher.rb
suspenders-1.53.0 spec/support/match_contents_matcher.rb
welaika-suspenders-2.33 spec/support/match_contents_matcher.rb
welaika-suspenders-2.32.2 spec/support/match_contents_matcher.rb
welaika-suspenders-2.32.1 spec/support/match_contents_matcher.rb
welaika-suspenders-2.32.0 spec/support/match_contents_matcher.rb
suspenders-1.52.0 spec/support/match_contents_matcher.rb
suspenders-1.51.0 spec/support/match_contents_matcher.rb
welaika-suspenders-2.31.0 spec/support/match_contents_matcher.rb
welaika-suspenders-2.30.0 spec/support/match_contents_matcher.rb
bulldozer-1.6.3 spec/support/match_contents_matcher.rb
bulldozer-1.6.2 spec/support/match_contents_matcher.rb
bulldozer-1.6.1 spec/support/match_contents_matcher.rb