Files
codeocean/spec/support/expectations/has_content.rb
2019-12-06 17:25:00 +01:00

10 lines
177 B
Ruby

# frozen_string_literal: true
require 'rspec/expectations'
RSpec::Matchers.define :has_content do |actual_content|
match do |file|
file.read == actual_content
end
end