Skip to content

Commit

Permalink
Update spec/datadog/di/spec_helper.rb
Browse files Browse the repository at this point in the history
Co-authored-by: datadog-datadog-prod-us1[bot] <88084959+datadog-datadog-prod-us1[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 43feda2 commit af7282b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/datadog/di/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def instance_double_agent_settings

def expect_lazy_log(logger, meth, expected_msg)
expect(logger).to receive(meth) do |&block|
if String === expected_msg
if expected_msg.is_a?(String)
expect(block.call).to eq(expected_msg)
else
expect(block.call).to match(expected_msg)
Expand Down

0 comments on commit af7282b

Please sign in to comment.