We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5832a3b commit 1437c7cCopy full SHA for 1437c7c
spec/octocatalog-diff/tests/catalog-diff/filter/single_item_array_spec.rb
@@ -33,5 +33,17 @@
33
result = subject.filtered?(diff_obj)
34
expect(result).to eq(true)
35
end
36
+
37
+ it 'should filter when from-catalog has string and to-catalog has array with that string' do
38
+ diff = [
39
+ '~',
40
+ "File\ffoobar.json",
41
+ { 'parameters' => { 'notify' => ['Service[foo]'] } },
42
+ { 'parameters' => { 'notify' => 'Service[foo]' } }
43
+ ]
44
+ diff_obj = OctocatalogDiff::API::V1::Diff.new(diff)
45
+ result = subject.filtered?(diff_obj)
46
+ expect(result).to eq(true)
47
+ end
48
49
0 commit comments