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

stripe / stripe-ruby / 3763
97%

Build:
DEFAULT BRANCH: master
Ran 09 Feb 2021 05:51PM CUT
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
3763

push

travis-ci

web-flow
Fix return value of `Customer#delete_discount` (#964)

`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 3763.1 (2.3, STRIPE_MOCK_VERSION=0.101.0) 09 Feb 2021 05:51PM CUT 0
96.68
Travis Job 3763.1
2 3763.2 (2.4, STRIPE_MOCK_VERSION=0.101.0) 09 Feb 2021 05:51PM CUT 0
96.68
Travis Job 3763.2
3 3763.3 (2.5, STRIPE_MOCK_VERSION=0.101.0) 09 Feb 2021 05:51PM CUT 0
96.69
Travis Job 3763.3
4 3763.4 (2.6, STRIPE_MOCK_VERSION=0.101.0) 09 Feb 2021 05:51PM CUT 0
96.76
Travis Job 3763.4
5 3763.5 (2.7, STRIPE_MOCK_VERSION=0.101.0) 09 Feb 2021 05:51PM CUT 0
96.76
Travis Job 3763.5
6 3763.6 (jruby-9.2.7.0, STRIPE_MOCK_VERSION=0.101.0) 09 Feb 2021 05:53PM CUT 0
0.0
Travis Job 3763.6
Source Files on build 3763
  • Tree
  • List 106
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
58.62
lib/stripe/error_object.rb94 29 17 12 5.0
60.0
lib/stripe/resources/bitcoin_receiver.rb24 10 6 4 5.0
73.33
lib/stripe/resources/card.rb38 15 11 4 5.0
81.82
lib/stripe/resources/application_fee_refund.rb30 11 9 2 5.0
81.82
lib/stripe/resources/reversal.rb29 11 9 2 5.0
83.33
lib/stripe/resources/bitcoin_transaction.rb15 6 5 1 5.0
88.24
lib/stripe/resources/bank_account.rb43 17 15 2 6.0
90.91
lib/stripe/resources/transfer.rb27 11 10 1 5.0
91.53
lib/stripe/connection_manager.rb162 59 54 5 2084.0
91.67
lib/stripe/singleton_api_resource.rb26 12 11 1 5.0
Showing 1 to 10 of 106 entries
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 11
  • Next
  • ►
    96.76
    lib/
  • Back to Repo
  • Travis Build #3763
  • c28ee66a on github
  • Prev Build on master (#3758)
  • Next Build on master (#3764)
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

© 2025 Coveralls, Inc