Skip to content

Commit

Permalink
Merge pull request #9456 from puppetlabs/backport-9455-to-7.x
Browse files Browse the repository at this point in the history
[Backport 7.x] Fix include matcher behavior
  • Loading branch information
mhashizume committed Aug 27, 2024
2 parents 56d3799 + 9a122f8 commit 3f03838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/integration/parser/collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def expect_the_message_to_be(expected_messages, code, node = Puppet::Node.new('t
catalog = compile_to_catalog(code, node)
messages = catalog.resources.find_all { |resource| resource.type == 'Notify' }.
collect { |notify| notify[:message] }
expect(messages).to include(*expected_messages)
expected_messages.each { |message| expect(messages).to include(message) }
end

def warnings
Expand Down

0 comments on commit 3f03838

Please sign in to comment.