Skip to content

Commit

Permalink
minor style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Jul 23, 2023
1 parent ad549b9 commit 11cf02d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/capybara/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def filter_backtrace(trace)
new_trace = trace.grep_v(filter) if new_trace.empty?
new_trace = trace.dup if new_trace.empty?

new_trace.first.split(/:in /, 2).first
new_trace.first.split(':in ', 2).first
end

def warn(message, uplevel: 1)
Expand Down
2 changes: 1 addition & 1 deletion lib/capybara/spec/session/uncheck_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

it 'should not accept partial matches when true' do
expect do
@session.uncheck('Ham', exact: true)
@session.uncheck('Ham', exact: true)
end.to raise_error(Capybara::ElementNotFound)
end
end
Expand Down

0 comments on commit 11cf02d

Please sign in to comment.