Sha256: 2d54f6cd7d8db403b881050cc2b190c258207bb236ba414316f4e110237dd46d
Contents?: true
Size: 257 Bytes
Versions: 4
Compression:
Stored size: 257 Bytes
Contents
require "rspec" RSpec::Matchers.define :have_content do |expected| match do |actual| actual.content.include? expected end failure_message_for_should do |actual| "expected \"#{actual.content.join("\n")}\" to include \"#{expected}\"" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
acouchi-0.0.6 | lib/acouchi/rspec/matchers.rb |
acouchi-0.0.5 | lib/acouchi/rspec/matchers.rb |
acouchi-0.0.4 | lib/acouchi/rspec/matchers.rb |
acouchi-0.0.3 | lib/acouchi/rspec/matchers.rb |