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

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

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

pending completion
3761

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.

2075 of 2145 relevant lines covered (96.74%)

2498.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3761.1 (2.3, STRIPE_MOCK_VERSION=0.101.0) 08 Feb 2021 10:08PM UTC 0
96.68
Travis Job 3761.1
2 3761.2 (2.4, STRIPE_MOCK_VERSION=0.101.0) 08 Feb 2021 10:08PM UTC 0
96.68
Travis Job 3761.2
3 3761.3 (2.5, STRIPE_MOCK_VERSION=0.101.0) 08 Feb 2021 10:08PM UTC 0
96.69
Travis Job 3761.3
4 3761.4 (2.6, STRIPE_MOCK_VERSION=0.101.0) 08 Feb 2021 10:08PM UTC 0
96.76
Travis Job 3761.4
5 3761.5 (2.7, STRIPE_MOCK_VERSION=0.101.0) 08 Feb 2021 10:08PM UTC 0
96.76
Travis Job 3761.5
6 3761.6 (jruby-9.2.7.0, STRIPE_MOCK_VERSION=0.101.0) 08 Feb 2021 10:10PM UTC 0
0.0
Travis Job 3761.6
Source Files on build 3761
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3761
  • b2c3b92a on github
  • Prev Build on brandur-fix-delete-discount (#3759)
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