spec/write_expectation.rb in conjur-cli-2.4.1 vs spec/write_expectation.rb in conjur-cli-2.6.0
- old
+ new
@@ -23,9 +23,10 @@
when :stderr then fake_stderr(&block)
else fail("Allowed values for `to` are :stdout and :stderr, got `#{io.inspect}`")
end
case message
+ when Hash then output.include?(JSON.pretty_generate message)
when String then output.include? message
when Regexp then output.match message
when nil then output
else fail("Allowed types for write `message` are String or Regexp, got `#{message.class}`")
end