Use shorter string when stub is treated as a message

This commit is contained in:
Michael Miller 2022-11-04 22:55:12 -06:00
parent e2cdc9e08e
commit 318e4eba89
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF
3 changed files with 26 additions and 14 deletions

View file

@ -296,7 +296,7 @@ Spectator.describe Spectator::Matchers::ReceiveMatcher do
end
it "has the expected call listed" do
is_expected.to contain({:expected, "Not #{stub}"})
is_expected.to contain({:expected, "Not #{stub.message}"})
end
it "has the list of called methods" do