Skip to content

Commit

Permalink
Merge pull request #75 from ekohl/fix-tests-without-rspec-json_expect…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
chelnak authored Jan 16, 2023
2 parents 137341a + aa52442 commit b3c4eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/puppet-lint/bin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def initialize(args)
if respond_to?(:include_json)
is_expected.to include_json([[{ 'KIND' => 'WARNING' }]])
else
is_expected.to match(%r{\[\n \{})
is_expected.to match(%r{\[\n \[\n \{})
end
end
end
Expand All @@ -397,7 +397,7 @@ def initialize(args)
if respond_to?(:include_json)
is_expected.to include_json([[{ 'KIND' => 'ERROR' }], [{ 'KIND' => 'WARNING' }]])
else
is_expected.to match(%r{\[\n \{})
is_expected.to match(%r{\[\n \[\n \{})
end
end
end
Expand Down

0 comments on commit b3c4eaa

Please sign in to comment.