Sha256: ece8cc7bcdc37c974e011d6cc8d187aef1db8310c64feb69d378afb752b99f81
Contents?: true
Size: 429 Bytes
Versions: 18
Compression:
Stored size: 429 Bytes
Contents
RSpec::Matchers.define :be_a_directory do match do |actual| File.directory? actual.to_s end end RSpec::Matchers.define :be_a_file do match do |actual| File.file? actual.to_s end end RSpec::Matchers.define :have_the_content do |expected| match do |actual| File.read(actual.to_s) == expected end end RSpec::Matchers.define :be_executable do match do |actual| File.executable? actual.to_s end end
Version data entries
18 entries across 18 versions & 1 rubygems