Sha256: d187468dd415896968a82aa3aa4a83682971e0b4a2509e45bb28afe3b7273685

Contents?: true

Size: 262 Bytes

Versions: 14

Compression:

Stored size: 262 Bytes

Contents

# frozen_string_literal: true

require 'rspec/expectations'

RSpec::Matchers.define :appear_before do |expected|
  match do |actual|
    raise "Page instance required to use the appear_before matcher" unless page
    has_text? /#{actual}.*#{expected}/
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
solidus_backend-2.10.5 spec/support/appear_before_matcher.rb
solidus_backend-2.10.3 spec/support/appear_before_matcher.rb
solidus_backend-2.10.2 spec/support/appear_before_matcher.rb
solidus_backend-2.9.6 spec/support/appear_before_matcher.rb
solidus_backend-2.10.1 spec/support/appear_before_matcher.rb
solidus_backend-2.9.5 spec/support/appear_before_matcher.rb
solidus_backend-2.10.0 spec/support/appear_before_matcher.rb
solidus_backend-2.9.4 spec/support/appear_before_matcher.rb
solidus_backend-2.9.3 spec/support/appear_before_matcher.rb
solidus_backend-2.9.2 spec/support/appear_before_matcher.rb
solidus_backend-2.10.0.beta1 spec/support/appear_before_matcher.rb
solidus_backend-2.9.1 spec/support/appear_before_matcher.rb
solidus_backend-2.9.0 spec/support/appear_before_matcher.rb
solidus_backend-2.9.0.rc.1 spec/support/appear_before_matcher.rb