summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-03-27 22:49:57 -0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-06-22 12:13:46 +0200
commit9874cf59534981b3e3192a4b3be895fc819d20fa (patch)
tree7c7e705821b63f43823ac85d300527a7a6b2d317 /spec/support
parent990ddeba850fd6945a2edc4aadfa3d7e40f7553f (diff)
downloadgitlab-ce-9874cf59534981b3e3192a4b3be895fc819d20fa.tar.gz
Fix include_module matcher
Diffstat (limited to 'spec/support')
-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