Skip to content

Commit

Permalink
Code style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Oct 23, 2022
1 parent f1c2b73 commit 2d05c20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/capybara/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def raise_server_error!
if config.raise_server_errors
raise CapybaraError, 'Your application server raised an error - It has been raised in your test code because Capybara.raise_server_errors == true'
end
rescue CapybaraError => capy_error
rescue CapybaraError => capy_error # rubocop:disable Naming/RescuedExceptionsVariableName
raise @server.error, cause: capy_error
ensure
@server.reset_error!
Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/shared_spec_matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

describe 'have_xpath matcher' do
it 'gives proper description' do
expect(have_xpath('//h1').description).to eq("have visible xpath \"\/\/h1\"")
expect(have_xpath('//h1').description).to eq('have visible xpath "//h1"')
end

context 'on a string' do
Expand Down

0 comments on commit 2d05c20

Please sign in to comment.