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