Fix include_module matcher
This commit is contained in:
parent
990ddeba85
commit
9874cf5953
1 changed files with 5 additions and 1 deletions
|
@ -33,7 +33,11 @@ RSpec::Matchers.define :include_module do |expected|
|
|||
described_class.included_modules.include?(expected)
|
||||
end
|
||||
|
||||
failure_message_for_should do
|
||||
description do
|
||||
"include the #{expected} module"
|
||||
end
|
||||
|
||||
failure_message do
|
||||
"expected #{described_class} to include the #{expected} module"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue