diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-03-27 22:49:57 -0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-22 12:13:46 +0200 |
commit | 9874cf59534981b3e3192a4b3be895fc819d20fa (patch) | |
tree | 7c7e705821b63f43823ac85d300527a7a6b2d317 /spec/support | |
parent | 990ddeba850fd6945a2edc4aadfa3d7e40f7553f (diff) | |
download | gitlab-ce-9874cf59534981b3e3192a4b3be895fc819d20fa.tar.gz |
Fix include_module matcher
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 |