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

stripe / stripe-ruby / 3759 / 4
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: master
Ran 08 Feb 2021 09:59PM UTC
Files 106
Run time 11s
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 09:57PM UTC coverage: 96.755%. First build
2.6, 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.

2117 of 2188 relevant lines covered (96.76%)

495.86 hits per line

Source Files on job 3759.4 (2.6, 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 3584
  • Travis Job 3759.4
  • e1fc70b6 on github
  • Next Job for 2.6, STRIPE_MOCK_VERSION=0.101.0 on brandur-fix-delete-discount (#3761.4)
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