Sha256: de39898b3429ce4b2ef069c6b5a440643ada1f2c2a82da1a127797daa78ce6e1

Contents?: true

Size: 385 Bytes

Versions: 73

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :appear_before do |later_content|
  match do |earlier_content|
    page.body.index(earlier_content) < page.body.index(later_content)
  rescue ArgumentError
    raise "Could not locate later content on page: #{later_content}"
  rescue NoMethodError
    raise "Could not locate earlier content on page: #{earlier_content}"
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
decidim-dev-0.30.0.rc2 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.30.0.rc1 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.29.2 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.28.5 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.29.1 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.28.4 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.27.9 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.29.0 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.28.3 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.27.8 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.29.0.rc4 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.29.0.rc3 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.29.0.rc2 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.29.0.rc1 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.28.2 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.27.7 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.28.1 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.27.6 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.26.10 lib/decidim/dev/test/rspec_support/orderly_matchers.rb
decidim-dev-0.26.9 lib/decidim/dev/test/rspec_support/orderly_matchers.rb