Skip to content

Commit 9a122f8

Browse files
mhashizumegithub-actions[bot]
authored andcommitted
Fix include matcher behavior
rspec-expectations recently released v3.13.2, which includes a change to the include matcher (see rspec/rspec-expectations@bd5d306). This change breaks using the splat operator on an array into the include matcher. This commit updates the matcher to iterate over the array instead of using the splat operator. (cherry picked from commit 8e49889)
1 parent 56d3799 commit 9a122f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/integration/parser/collection_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def expect_the_message_to_be(expected_messages, code, node = Puppet::Node.new('t
88
catalog = compile_to_catalog(code, node)
99
messages = catalog.resources.find_all { |resource| resource.type == 'Notify' }.
1010
collect { |notify| notify[:message] }
11-
expect(messages).to include(*expected_messages)
11+
expected_messages.each { |message| expect(messages).to include(message) }
1212
end
1313

1414
def warnings

0 commit comments

Comments
 (0)