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

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

Build:
DEFAULT BRANCH: master
Ran 06 Sep 2020 07:24PM UTC
Files 203
Run time 17s
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: 19.652% (-0.002%) from 19.654%
2.7, NOKOGIRI_USE_SYSTEM_LIBRARIES=true JAVA_OPTS=-Djava.security.egd=file:/dev/urandom WD_CACHE_TIME=0, 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
```

2361 of 12014 relevant lines covered (19.65%)

0.42 hits per line

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