Sha256: cc7f2836d9a98d53686011335006a15cd54e5ac248a1af690a789a9fe1b4f92a

Contents?: true

Size: 217 Bytes

Versions: 2

Compression:

Stored size: 217 Bytes

Contents

RSpec::Matchers.define :have_text_like do |expected|
  match do |actual|
    have_text %r{#{expected}}iu
  end
  failure_message_for_should do |actual|
    "expected that text would exist with '#{expected}'"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree-print-invoice-2.2.0 spec/support/matchers/have_text_like.rb
spree-print-invoice-2.1.0 spec/support/matchers/have_text_like.rb