rspec-stripe 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aebb61edfdface38eac80af10ff04041889f6087
4
- data.tar.gz: abbe9a69a548dc03c39ab7a6dcb066c2d650bc0d
3
+ metadata.gz: 353589d142ee7fa68b77a757059299d3e58df9ee
4
+ data.tar.gz: 530e64797690bae470b185cd73912cfb412f75b1
5
5
  SHA512:
6
- metadata.gz: f0a9c17d28a6c4a07a9c7f20cccd116779c96537d56af2bae45ac5ec3b5de20e2db4e98100bc6395439bc7fad5775de6de256ebb9bee18026b75e8efbe2b31ee
7
- data.tar.gz: 745931ad0037f1fe8dc410696ab35c0e1bed18c098b421c31fe3ba62a15f71b93f861865a2eae323915bf2f3c3fa66a16f664a09a155e89116881cb6f1f06b6f
6
+ metadata.gz: b1425d8229f800fb6c13f2f1cee18124c024cf039fedac8a3ee27881d52c8b3598e1e7570552884692de816dfeaa104343b5e7870b5ed1690c64e27974bd8f4d
7
+ data.tar.gz: 8e33c8787acd87f301b916c8578fb86e8dca252bf38d602a2ec2acc1607712ae54bbdc7a6bc0ce27906b39a28b00c396f931f3b1e86ab1d8d8aafcb906efe1a7
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1 @@
1
+ 2.1.2
@@ -1,8 +1,8 @@
1
1
  GIT
2
2
  remote: https://github.com/stripe/stripe-ruby
3
- revision: 2c6f4caa99916c33d3f9af57f66422ff5ea913cf
3
+ revision: da216fd53b7a5386c136e93bdfe5efaff20682b7
4
4
  specs:
5
- stripe (1.15.0)
5
+ stripe (1.16.0)
6
6
  json (~> 1.8.1)
7
7
  mime-types (>= 1.25, < 3.0)
8
8
  rest-client (~> 1.4)
@@ -10,19 +10,17 @@ GIT
10
10
  PATH
11
11
  remote: .
12
12
  specs:
13
- rspec-stripe (0.0.5)
13
+ rspec-stripe (0.0.6)
14
14
 
15
15
  GEM
16
16
  remote: https://rubygems.org/
17
17
  specs:
18
18
  diff-lcs (1.2.5)
19
- dotenv (0.11.1)
20
- dotenv-deployment (~> 0.0.2)
21
- dotenv-deployment (0.0.2)
19
+ dotenv (1.0.2)
22
20
  fakeweb (1.3.0)
23
21
  json (1.8.1)
24
- mime-types (2.3)
25
- netrc (0.7.7)
22
+ mime-types (2.4.3)
23
+ netrc (0.8.0)
26
24
  rest-client (1.7.2)
27
25
  mime-types (>= 1.16, < 3.0)
28
26
  netrc (~> 0.7)
@@ -30,14 +28,14 @@ GEM
30
28
  rspec-core (~> 3.1.0)
31
29
  rspec-expectations (~> 3.1.0)
32
30
  rspec-mocks (~> 3.1.0)
33
- rspec-core (3.1.4)
31
+ rspec-core (3.1.7)
34
32
  rspec-support (~> 3.1.0)
35
- rspec-expectations (3.1.1)
33
+ rspec-expectations (3.1.2)
36
34
  diff-lcs (>= 1.2.0, < 2.0)
37
35
  rspec-support (~> 3.1.0)
38
- rspec-mocks (3.1.1)
36
+ rspec-mocks (3.1.3)
39
37
  rspec-support (~> 3.1.0)
40
- rspec-support (3.1.0)
38
+ rspec-support (3.1.2)
41
39
 
42
40
  PLATFORMS
43
41
  ruby
@@ -22,6 +22,7 @@ module RSpecStripe::Factory
22
22
 
23
23
  def cleanup
24
24
  get.delete
25
+ rescue Stripe::InvalidRequestError # ignore
25
26
  end
26
27
 
27
28
  def recipes
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.require_paths = ["lib"]
13
13
  s.files = `git ls-files`.split("\n")
14
14
 
15
- s.version = "0.0.5"
15
+ s.version = "0.0.6"
16
16
  s.required_ruby_version = '>= 2.0.0'
17
17
  s.required_rubygems_version = '>= 1.6.2'
18
18
  end
@@ -122,6 +122,15 @@ describe RSpecStripe::Runner do
122
122
  runner.cleanup!
123
123
  end
124
124
 
125
+ context "if Stripe errors out in cleanup" do
126
+ it "doesn't error out" do
127
+ runner = RSpecStripe::Runner.new({customer: "id", card: :visa})
128
+ runner.call!
129
+ expect(card_double).to receive(:delete).once.and_raise(Stripe::InvalidRequestError.new("x", "x"))
130
+ runner.cleanup!
131
+ end
132
+ end
133
+
125
134
  it "can create cards based on recipes"
126
135
  end
127
136
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Bussey
@@ -17,6 +17,8 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - ".gitignore"
20
+ - ".rspec"
21
+ - ".ruby-version"
20
22
  - Gemfile
21
23
  - Gemfile.lock
22
24
  - README.md