Skip to content

Commit

Permalink
Fix compatability with capybara 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
fschwahn committed Aug 7, 2019
1 parent 3ba42f0 commit cf98141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/orderly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Orderly
RSpec::Matchers.define :appear_before do |later_content|
match do |earlier_content|
begin
node = page.current_scope
node = page.respond_to?(:current_scope) ? page.current_scope : page.send(:current_node)
html = html_for_node(node)
html.index(earlier_content) < html.index(later_content)
rescue ArgumentError
Expand Down

0 comments on commit cf98141

Please sign in to comment.