Sha256: 687d3264ed3117468006c73dce83eaa79138f3b02051317dc837276edbc8246c

Contents?: true

Size: 380 Bytes

Versions: 8

Compression:

Stored size: 380 Bytes

Contents

Spec::Matchers.define :have_same_contents_as do |expected_file|
  diffable
  
  match do |actual_root_path|
    puts expected = File.read(expected_file)
    false
  end
  
  description do
    "match the file in the two projects"
  end
end

Spec::Matchers.define :have_same_basename do |expected|
  match do |actual|
    File.basename(expected) == File.basename(actual)
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
install_theme-0.5.1 spec/matchers/have_same_contents_as.rb
install_theme-0.5.0 spec/matchers/have_same_contents_as.rb
install_theme-0.4.1 spec/matchers/have_same_contents_as.rb
install_theme-0.4.0 spec/matchers/have_same_contents_as.rb
convert_theme-0.3.1 spec/matchers/have_same_contents_as.rb
convert_theme-0.3.0 spec/matchers/have_same_contents_as.rb
convert_theme-0.2.0 spec/matchers/have_same_contents_as.rb
convert_theme-0.1.0 spec/matchers/have_same_contents_as.rb