summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-03-27 22:49:57 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-06-14 23:05:32 -0400
commita16d26866ad14104d0ea7760f9de012f6d682d52 (patch)
tree00143e622a37b96edec14ce98d157ff33c69f25e
parent4477694dbe96a5505022938b9dda7756b846847a (diff)
downloadgitlab-ce-a16d26866ad14104d0ea7760f9de012f6d682d52.tar.gz
Fix include_module matcher
-rw-r--r--spec/support/matchers.rb6
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