Use include instead of match in the error message (#1248)

as include behaves like contain and not match

Signed-off-by: Artem Sidorenko <artem@posteo.de>
This commit is contained in:
Artem Sidorenko 2016-10-25 22:45:57 +02:00 committed by Christoph Hartmann
parent 23456c5e86
commit 489f314a79
2 changed files with 1 additions and 1 deletions

0
bla Normal file
View file

View file

@ -219,7 +219,7 @@ end
# unsupported
RSpec::Matchers.define :contain do |_rule|
match do |_resource|
fail "[UNSUPPORTED] `contain` matcher. Please use the following syntax `its('content') { should match('value') }`."
fail "[UNSUPPORTED] `contain` matcher. Please use the following syntax `its('content') { should include('value') }`."
end
end