graphiti_spec_helpers 1.0.alpha.3 → 1.0.alpha.6

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: 0ba87b5660df9ad1907b1f27881bf85051fffc86
4
- data.tar.gz: c0196e9d084c09bd749c45ad286ca82a973bdaef
3
+ metadata.gz: 58d3bbaa26d0375d6ec60f9ed1e2458e31555c25
4
+ data.tar.gz: f022739fc29fba5fc2321db89fab12027daf5e63
5
5
  SHA512:
6
- metadata.gz: e704d915067bfa4cf2715a8cbf108a8861b18e1e60cdc8bc4dcba3283d157c10732ea13c2a48ab7bea72c5f036057dcbe3fe79619d7e14b670de1a840343e28a
7
- data.tar.gz: 9a2565080127aa2bc2725fc5fc8971ca68dbacee53d27c10807ce7cefab690f6237fc9afb7fc93591a1fa93608da8c010d6e74a8f62415fc0bf579d7be887a87
6
+ metadata.gz: d0266eccaf9537e11e2b2572699339b962db97c8dae4dc63586e70628c15cdc66754c3ef2a5f9008fc1214a8362a5bd0bd5f0e41f6b50d418b8f17a376854a64
7
+ data.tar.gz: 83f8c75c84f6954858cd955ee96540c9b74c6d67432a2e9732e727d537876a8cec8e75fff928c7242a2d4e71452ee7f3c45e38104a686630308520c210172655
@@ -12,6 +12,16 @@ module GraphitiSpecHelpers
12
12
  end
13
13
  end
14
14
 
15
+ class NoAttribute < Base
16
+ def initialize(name)
17
+ @name = name
18
+ end
19
+
20
+ def message
21
+ "No attribute '#{@name}' in JSON response node!"
22
+ end
23
+ end
24
+
15
25
  class SideloadNotFound < Base
16
26
  def initialize(name)
17
27
  @name = name
@@ -40,7 +40,7 @@ module GraphitiSpecHelpers
40
40
  if @attributes.has_key?(id)
41
41
  @attributes[id]
42
42
  else
43
- super
43
+ raise Errors::NoAttribute.new(id)
44
44
  end
45
45
  end
46
46
 
@@ -1,3 +1,3 @@
1
1
  module GraphitiSpecHelpers
2
- VERSION = "1.0.alpha.3"
2
+ VERSION = "1.0.alpha.6"
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.alpha.3
4
+ version: 1.0.alpha.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-03 00:00:00.000000000 Z
11
+ date: 2018-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphiti