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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/rspec/terraform/matchers/include_resource_change.rb +4 -3
- data/lib/rspec/terraform/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: c06106892455a71f5b806b4fa05c3127fed7fe1de42a780b22544a14704e37fd
|
4
|
+
data.tar.gz: 948a06ff35e8bc83065ccd45d8b00ca90e3e06a646caaa85201325cd12ff1021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11b85d1fd0a354b73cf2cd04c54ac3851de3ce5c9f193a33c7d6dd1906bb71d995f62dda9e641b0d045403a60305ec6f88c0eb989e77dd9dbf3cd805863b3fe8
|
7
|
+
data.tar.gz: ced24b8238a9117f8d07049271c3d7f37e5b1f700096a00d373ee6a82e7f1972d3cf6201a1bae17aa91bb14ea31c536e50c04e0707d33a8601750a9777391810
|
data/Gemfile.lock
CHANGED
@@ -27,8 +27,9 @@ module RSpec
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def with_attribute_value(*args)
|
30
|
-
stage,
|
31
|
-
|
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
|
48
|
+
actual = after.dig(*attribute[:path])
|
48
49
|
actual == expected
|
49
50
|
end
|
50
51
|
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
|
+
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
|
+
date: 2022-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|