Sha256: 1342686ff8d89720cd9afd88450537ac4e476162c68a9120f90b1c3ca33cc2e2
Contents?: true
Size: 280 Bytes
Versions: 33
Compression:
Stored size: 280 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 page.body.index(actual) <= page.body.index(expected) end end
Version data entries
33 entries across 33 versions & 2 rubygems