Sha256: 51398dd9b91cf95e673626b1ad390c27db655d6ec7ae34dac4df97fdae6dea87
Contents?: true
Size: 655 Bytes
Versions: 27
Compression:
Stored size: 655 Bytes
Contents
RSpec::Matchers.define :be_existing_file do |_| match { |actual| File.file?(actual) } failure_message do |actual| format("expected that file \"%s\" exists", actual) end failure_message_when_negated do |actual| format("expected that file \"%s\" does not exist", actual) end end RSpec::Matchers.define :have_content do |expected| match { |actual| File.read(actual).chomp == expected.chomp } failure_message do |actual| format("expected that file \"%s\" contains:\n%s", actual, expected) end failure_message_when_negated do |actual| format("expected that file \"%s\" does not contain:\n%s", actual, expected) end end
Version data entries
27 entries across 27 versions & 1 rubygems