rspec-terraform 0.1.0.pre.4 → 0.1.0.pre.5

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: d7cb3c96cddab5b6da8dfe17777c03db55bcf4aa26f0ace70d0071054fffcd45
4
- data.tar.gz: 8627531e2f304c235a9187b9a1d93a4e150322c06d53fc0f7838ef814e66908a
3
+ metadata.gz: c06106892455a71f5b806b4fa05c3127fed7fe1de42a780b22544a14704e37fd
4
+ data.tar.gz: 948a06ff35e8bc83065ccd45d8b00ca90e3e06a646caaa85201325cd12ff1021
5
5
  SHA512:
6
- metadata.gz: bb8bfc14dd162538c8954c9fddea724e71d787750cc852f9aebf38e9e93602d6ba669a3b2e7d7850d66a655f107b3766537c1238289c7d9faba36a31bcc48199
7
- data.tar.gz: 2d81dca04084c0662c0470bc4e51fff069feeac4cf9f08c0e2863960b169e1e3065367969bc4b99dd1730e16331616574ed2a4212fee23dc32976e22e8d58810
6
+ metadata.gz: 11b85d1fd0a354b73cf2cd04c54ac3851de3ce5c9f193a33c7d6dd1906bb71d995f62dda9e641b0d045403a60305ec6f88c0eb989e77dd9dbf3cd805863b3fe8
7
+ data.tar.gz: ced24b8238a9117f8d07049271c3d7f37e5b1f700096a00d373ee6a82e7f1972d3cf6201a1bae17aa91bb14ea31c536e50c04e0707d33a8601750a9777391810
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-terraform (0.1.0.pre.4)
4
+ rspec-terraform (0.1.0.pre.5)
5
5
  rspec (>= 3.0)
6
6
  ruby-terraform (= 1.7.0.pre.3)
7
7
 
@@ -142,4 +142,4 @@ DEPENDENCIES
142
142
  simplecov
143
143
 
144
144
  BUNDLED WITH
145
- 2.3.17
145
+ 2.3.18
@@ -27,8 +27,9 @@ module RSpec
27
27
  end
28
28
 
29
29
  def with_attribute_value(*args)
30
- stage, name, value = args.count == 3 ? args : [:after, *args]
31
- @attributes << { stage: stage, name: name, value: value }
30
+ stage, path, value = args.count == 3 ? args : [:after, *args]
31
+ path = [path] if path.is_a?(Symbol)
32
+ @attributes << { stage: stage, path: path, value: value }
32
33
  self
33
34
  end
34
35
 
@@ -44,7 +45,7 @@ module RSpec
44
45
  after = change.after_object
45
46
  @attributes.all? do |attribute|
46
47
  expected = RubyTerraform::Models::Objects.box(attribute[:value])
47
- actual = after[attribute[:name]]
48
+ actual = after.dig(*attribute[:path])
48
49
  actual == expected
49
50
  end
50
51
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Terraform
5
- VERSION = '0.1.0.pre.4'
5
+ VERSION = '0.1.0.pre.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.4
4
+ version: 0.1.0.pre.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-11 00:00:00.000000000 Z
11
+ date: 2022-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec