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

stripe / stripe-ruby / 3761 / 3
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: master
Ran 08 Feb 2021 10:08PM UTC
Files 106
Run time 20s
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

08 Feb 2021 10:07PM UTC coverage: 96.686%. Remained the same
2.5, STRIPE_MOCK_VERSION=0.101.0

push

travis-ci

brandur
Fix return value of `Customer#delete_discount`

`Customer#delete_discount` has been broken for some time in that it
tries to re-initialize `self` (which is a customer) with a received
discount response. This is incorrect and leads to various problems.

Here, we redefine the return value of `delete_discount` as a discount,
and have it no longer mutate the object on which is was called. We add a
comment as well just to help flag some of the behavior which could
potentially be confusing.

Fixes #963.

2130 of 2203 relevant lines covered (96.69%)

507.28 hits per line

Source Files on job 3761.3 (2.5, STRIPE_MOCK_VERSION=0.101.0)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3586
  • Travis Job 3761.3
  • b2c3b92a on github
  • Prev Job for 2.5, STRIPE_MOCK_VERSION=0.101.0 on brandur-fix-delete-discount (#3759.3)
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