Sha256: cb1d19f1f59c7523edf2dde6fdee04b70bbcb2d3d66f6ee675d6bd907ffce532

Contents?: true

Size: 229 Bytes

Versions: 6

Compression:

Stored size: 229 Bytes

Contents

require 'fileutils'

RSpec::Matchers.define :be_the_same_file_as do |expected|
  match do |actual|
    FileUtils.cmp actual, expected
  end
end

RSpec::Matchers.define :exist do
  match do |path|
    File.exists? path 
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
compaa-0.0.4 features/support/matchers.rb
compaa-0.0.3 features/support/matchers.rb
compaa-0.0.2 features/support/matchers.rb
compaa-0.0.1.3 features/support/matchers.rb
compaa-0.0.1.2 features/support/matchers.rb
compaa-0.0.1.1 features/support/matchers.rb