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 +4 -4
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/Gemfile.lock +10 -12
- data/lib/rspec-stripe/factories/card.rb +1 -0
- data/rspec-stripe.gemspec +1 -1
- data/spec/runner_spec.rb +9 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 353589d142ee7fa68b77a757059299d3e58df9ee
|
4
|
+
data.tar.gz: 530e64797690bae470b185cd73912cfb412f75b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1425d8229f800fb6c13f2f1cee18124c024cf039fedac8a3ee27881d52c8b3598e1e7570552884692de816dfeaa104343b5e7870b5ed1690c64e27974bd8f4d
|
7
|
+
data.tar.gz: 8e33c8787acd87f301b916c8578fb86e8dca252bf38d602a2ec2acc1607712ae54bbdc7a6bc0ce27906b39a28b00c396f931f3b1e86ab1d8d8aafcb906efe1a7
|
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.2
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/stripe/stripe-ruby
|
3
|
-
revision:
|
3
|
+
revision: da216fd53b7a5386c136e93bdfe5efaff20682b7
|
4
4
|
specs:
|
5
|
-
stripe (1.
|
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.
|
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.
|
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.
|
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.
|
31
|
+
rspec-core (3.1.7)
|
34
32
|
rspec-support (~> 3.1.0)
|
35
|
-
rspec-expectations (3.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.
|
36
|
+
rspec-mocks (3.1.3)
|
39
37
|
rspec-support (~> 3.1.0)
|
40
|
-
rspec-support (3.1.
|
38
|
+
rspec-support (3.1.2)
|
41
39
|
|
42
40
|
PLATFORMS
|
43
41
|
ruby
|
data/rspec-stripe.gemspec
CHANGED
data/spec/runner_spec.rb
CHANGED
@@ -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.
|
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
|