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

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

Build:
DEFAULT BRANCH: master
Ran 06 Sep 2020 07:26PM UTC
Files 224
Run time 19s
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: 78.71% (-0.02%) from 78.729%
2.6, NOKOGIRI_USE_SYSTEM_LIBRARIES=true JAVA_OPTS=-Djava.security.egd=file:/dev/urandom WD_CACHE_TIME=0, gemfiles/Gemfile.gumbo

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
```

10784 of 13701 relevant lines covered (78.71%)

337.74 hits per line

Source Files on job 7367.2 (2.6, NOKOGIRI_USE_SYSTEM_LIBRARIES=true JAVA_OPTS=-Djava.security.egd=file:/dev/urandom WD_CACHE_TIME=0, gemfiles/Gemfile.gumbo)
  • Tree
  • List 0
  • Changed 18
  • Source Changed 9
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1330
  • Travis Job 7367.2
  • 676a21e1 on github
  • Prev Job for 2.6, NOKOGIRI_USE_SYSTEM_LIBRARIES=true JAVA_OPTS=-Djava.security.egd=file:/dev/urandom WD_CACHE_TIME=0, gemfiles/Gemfile.gumbo on master (#7366.2)
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