consul/consul

View on GitHub
spec/support/matchers/appear_before.rb

Summary

Maintainability
A
0 mins
Test Coverage
RSpec::Matchers.define :appear_before do |later_content|
  match do |earlier_content|
    text = page.text
    text.index(earlier_content) < text.index(later_content)
  end
end