Sha256: f1857bf515091d3a9684d7becae4f3e7794874a64826e9bf518cbdd4967f5afe

Contents?: true

Size: 330 Bytes

Versions: 16

Compression:

Stored size: 330 Bytes

Contents

# Checks if a file with given name exists in the sandbox.
#
# @example
#
#     it "adds file.rb", :sandbox do
#       expect("file.rb").to present_in_sandbox
#     end
#
RSpec::Matchers.define :present_in_sandbox do
  match do |filename|
    file = File.join(sandbox, filename)
    expect(File.exist? file).to be_truthy
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
uuids-5.0.0 spec/support/development/matchers/sandbox.rb
uuids-4.1.8 spec/support/development/matchers/sandbox.rb
uuids-4.1.7 spec/support/development/matchers/sandbox.rb
uuids-4.1.6 spec/support/development/matchers/sandbox.rb
uuids-4.1.5 spec/support/development/matchers/sandbox.rb
uuids-4.1.4 spec/support/development/matchers/sandbox.rb
uuids-4.1.3 spec/support/development/matchers/sandbox.rb
uuids-4.1.2 spec/support/development/matchers/sandbox.rb
uuids-4.1.1 spec/support/development/matchers/sandbox.rb
uuids-4.1.0 spec/support/development/matchers/sandbox.rb
uuids-4.0.1 spec/support/development/matchers/sandbox.rb
uuids-4.0.0 spec/support/development/matchers/sandbox.rb
uuids-3.0.0 spec/support/development/matchers/sandbox.rb
uuids-2.0.0 spec/support/development/matchers/sandbox.rb
uuids-1.4.2 spec/support/development/matchers/sandbox.rb
uuids-1.4.1 spec/support/development/matchers/sandbox.rb