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

stripe / stripe-ruby / #5989

09 May 2024 07:45PM UTC coverage: 92.129% (-4.8%) from 96.911%
#5989

push

github

ramya-stripe
Bump version to 11.5.0-beta.1

10733 of 11650 relevant lines covered (92.13%)

269.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

64.71
/test/test_data.rb
1
# frozen_string_literal: true
2

3
module Stripe
1✔
4
  module TestData
1✔
5
    def make_error(type, message)
1✔
6
      {
×
7
        error: {
8
          type: type,
9
          message: message,
10
        },
11
      }
12
    end
13

14
    def make_invalid_api_key_error
1✔
15
      {
×
16
        error: {
17
          type: "invalid_request_error",
18
          message: "Invalid API Key provided: invalid",
19
        },
20
      }
21
    end
22

23
    def make_invalid_exp_year_error
1✔
24
      {
×
25
        error: {
26
          code: "invalid_expiry_year",
27
          param: "exp_year",
28
          type: "card_error",
29
          message: "Your card's expiration year is invalid",
30
        },
1✔
31
      }
32
    end
33

34
    def make_missing_id_error
1✔
35
      {
×
36
        error: {
37
          param: "id",
38
          type: "invalid_request_error",
39
          message: "Missing id",
40
        },
12✔
41
      }
42
    end
43

44
    def make_rate_limit_error
1✔
45
      {
×
46
        error: {
47
          type: "invalid_request_error",
48
          message: "Too many requests in a period of time.",
49
        },
1✔
50
      }
51
    end
52

53
    def make_api_error
1✔
54
      {
×
55
        error: {
56
          type: "api_error",
57
        },
58
      }
59
    end
60
  end
61
end
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