diff options
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/matchers.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index f8cce2ea5a3..35d0bae7085 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -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 |