mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Fix extraneous whitespace [ci skip]
This commit is contained in:
parent
d6a4c8c116
commit
6070d9bd47
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ module Capybara
|
|||
return Kernel.warn(message, uplevel: uplevel) if RUBY_VERSION >= '2.6'
|
||||
|
||||
# TODO: Remove when we drop support for Ruby 2.5
|
||||
# Workaround for emulating `warn '...', uplevel: n` in Ruby 2.5 or lower.
|
||||
# Workaround for emulating `warn '...', uplevel: n` in Ruby 2.5 or lower.
|
||||
if (match = /^(?<file>.+?):(?<line>\d+)(?::in `.*')?/.match(caller[uplevel]))
|
||||
location = [match[:file], match[:line]].join(':')
|
||||
Kernel.warn "#{location}: #{message}"
|
||||
|
|
Loading…
Reference in a new issue