graphiti_spec_helpers 1.0.1 → 1.0.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 +6 -0
- data/lib/graphiti_spec_helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15d378bcfa58e0e5d4a127d9dfb748c4043f9d1c760ff1e4ed8cc46d8b174d40
|
4
|
+
data.tar.gz: 3acdaeb20bfd9ccc2570eabe0a4035fb01ee3cf21b5d5227c8f6d754723a4f42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d266802a014ba39badefaeb4695d63f5df1b65c850fe2cdeb160379939e5107ad040438d0605617ede830d146507a40fc6c136094152a0850f7832586d89ba40
|
7
|
+
data.tar.gz: 798c7e573789526a45a2edb82852795a333bc6e79b967e0512f5fff6ed62533ce5c96a58864585c7712508dc7fd605f525c2910c6ca210df3b528d6a7da025eb
|
@@ -64,6 +64,12 @@ RSpec.shared_context 'remote api' do
|
|
64
64
|
|
65
65
|
def mock_api(url, json, call_count = 1)
|
66
66
|
api_response = double(body: json.to_json)
|
67
|
+
|
68
|
+
# page
|
69
|
+
@params[:fields] = @fields if @fields.present?
|
70
|
+
@params[:extra_fields] = @extra_fields if @extra_fields.present?
|
71
|
+
@params[:stats] = @stats if @stats.present?
|
72
|
+
|
67
73
|
expect(Faraday).to receive(:get)
|
68
74
|
.with(url, anything, anything)
|
69
75
|
.exactly(call_count).times
|
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.
|
4
|
+
version: 1.0.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-
|
11
|
+
date: 2019-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphiti
|