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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc3e440a6284e0a7b88458950aae51a5df016a5c
4
- data.tar.gz: 22105f3a12b87b48f592ca8f6d17e2afe9a47057
3
+ metadata.gz: f4794e1d2aa376ab740f0fb38496e48adf64b3c8
4
+ data.tar.gz: 5ea6c1faac205c03c2a21e891cda87aad4246989
5
5
  SHA512:
6
- metadata.gz: 24525d9e7dbcfe6d0ce5751fd2fe2de2c7b83c24973fdedd26544c7761b7102fccdc6be435021336c3f5a5dba59f687aef55fed3ebd1dacb1ba16d341958510a
7
- data.tar.gz: f5b427ebd13e0afe7377e7a053d1e52406f749a699d21b5f45d4229392d1c1217fa5cde72b40bc88aa6d5219e579d227b277029c7f0753188d6b1bd886db9f63
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
@@ -1,3 +1,3 @@
1
1
  module GraphitiSpecHelpers
2
- VERSION = "1.0.rc.1"
2
+ VERSION = "1.0.rc.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.rc.1
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-22 00:00:00.000000000 Z
11
+ date: 2019-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphiti