Sha256: c990fa4a7066911bd5030c9c1b6b4c54c82d45efcc57b5199a763235a4cf84f8

Contents?: true

Size: 249 Bytes

Versions: 6

Compression:

Stored size: 249 Bytes

Contents

RSpec::Matchers.define :exist do |path|
  match do
    File.exist?(path)
  end
  failure_message_for_should { "Expected #{path} to exist but no file found" }
  failure_message_for_should_not { "Expected #{path} to not exist but file was found" }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bootstrapped-2.0.4 features/support/matchers.rb
bootstrapped-2.0.3 features/support/matchers.rb
bootstrapped-1.0.1 features/support/matchers.rb
bootstrapped-1.0.0 features/support/matchers.rb
bootstrapped-0.9.0 features/support/matchers.rb
bootstrapped-0.0.6 features/support/matchers.rb