Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-03-28 05:49:57 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-06-22 13:13:46 +0300
commit9874cf59534981b3e3192a4b3be895fc819d20fa (patch)
tree7c7e705821b63f43823ac85d300527a7a6b2d317 /spec/support
parent990ddeba850fd6945a2edc4aadfa3d7e40f7553f (diff)
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