Fix include_module matcher

This commit is contained in:
Robert Speicher 2015-03-27 22:49:57 -04:00 committed by Dmitriy Zaporozhets
parent 990ddeba85
commit 9874cf5953

View file

@ -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