graphiti_spec_helpers 1.0.rc.1 → 1.0.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphiti_spec_helpers/rspec.rb +2 -1
- data/lib/graphiti_spec_helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4794e1d2aa376ab740f0fb38496e48adf64b3c8
|
4
|
+
data.tar.gz: 5ea6c1faac205c03c2a21e891cda87aad4246989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c0695dcbd328059fc835c1868a0533ac177e06bc2550c25914155e1a7b783c44e8b70f39e9ae5917ac36bc8416e554be5eab6d3c6726c27d8a08d4775a4640f
|
7
|
+
data.tar.gz: d5a6b6dddac5f803368e932e2b2d92dbcf4aa4343de7afd2e341c15198a03217e070dfe4dcaea16257d6d87a4ec4c09dfe0cfd036f5fe19ba2bacc6b7ac86ca5
|
@@ -62,10 +62,11 @@ RSpec.shared_context 'remote api' do
|
|
62
62
|
Graphiti.with_context(ctx) { e.run }
|
63
63
|
end
|
64
64
|
|
65
|
-
def mock_api(url, json)
|
65
|
+
def mock_api(url, json, call_count = 1)
|
66
66
|
api_response = double(body: json.to_json)
|
67
67
|
expect(Faraday).to receive(:get)
|
68
68
|
.with(url, anything, anything)
|
69
|
+
.exactly(call_count).times
|
69
70
|
.and_return(api_response)
|
70
71
|
end
|
71
72
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti_spec_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.rc.
|
4
|
+
version: 1.0.rc.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphiti
|