• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

teamcapybara / capybara / 7367 / 3
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 06 Sep 2020 07:35PM UTC
Files 206
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Sep 2020 07:21PM UTC coverage: 83.69%. First build
2.6, NOKOGIRI_USE_SYSTEM_LIBRARIES=true JAVA_OPTS=-Djava.security.egd=file:/dev/urandom WD_CACHE_TIME=0 CAPYBARA_REMOTE=true, Gemfile

push

travis-ci

web-flow
Add uplelvel to deprecation warning of Capybara (#2379)

Follow https://github.com/teamcapybara/capybara/issues/2371.

This PR adds `uplelvel` to deprecation warning of Capybara.
The `uplevel` option has been introduced from Ruby 2.6.

> If the `uplevel` keyword argument is given, the string will be prepended
with information for the given caller frame in the same format used by
the `rb_warn` C function.

https://ruby-doc.org/core-2.6.0/Kernel.html#method-i-warn

On the other hand, Capybara supports Ruby 2.5.
Therefore, This PR adds `Capybara::Helpers.warn` internal method
for emulating `warn 'message', uplevel: 1` in Ruby 2.5 or lower.

This option will clarify where deprecation warnings should be fixed.

## Before

```console
DEPRECATED: Calling 'has_key?' on the drivers/servers container is
deprecated without replacement
```

## After

```console
/Users/koic/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/turnip-4.1.0/
lib/turnip/capybara.rb:10: warning:
DEPRECATED: Calling 'has_key?' on the drivers/servers container is
deprecated without replacement
```

10760 of 12857 relevant lines covered (83.69%)

377.54 hits per line

Source Files on job 7367.3 (2.6, NOKOGIRI_USE_SYSTEM_LIBRARIES=true JAVA_OPTS=-Djava.security.egd=file:/dev/urandom WD_CACHE_TIME=0 CAPYBARA_REMOTE=true, Gemfile)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1330
  • Travis Job 7367.3
  • 676a21e1 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc