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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd35b4cbeadc10449673e318611e8732c339b8009a5340c489fc82ff72900559
4
- data.tar.gz: 11b660aa35c6a73e6b01014d5c2d74376caaad68ff359518d6261dfeafbe1493
3
+ metadata.gz: 15d378bcfa58e0e5d4a127d9dfb748c4043f9d1c760ff1e4ed8cc46d8b174d40
4
+ data.tar.gz: 3acdaeb20bfd9ccc2570eabe0a4035fb01ee3cf21b5d5227c8f6d754723a4f42
5
5
  SHA512:
6
- metadata.gz: 91ba61209c01b4970b9466d15706075c117b39c32030620b4a41b0ac406857a074848146b0fae7e4a1337da1cf4a8ff551a65eb3fb31127cc7e73ae8f6122c08
7
- data.tar.gz: 483166868f17345bf93d5454015207b8d6ddafb4cccf3c54fbfafcdcb2eaafcd252749797e472fb52df985abd37d099bae2dd3f3b630c8656730b3fc8c980aa5
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
@@ -1,3 +1,3 @@
1
1
  module GraphitiSpecHelpers
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  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.1
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-05-07 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphiti