diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-03-27 22:49:57 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-14 23:05:32 -0400 |
commit | a16d26866ad14104d0ea7760f9de012f6d682d52 (patch) | |
tree | 00143e622a37b96edec14ce98d157ff33c69f25e | |
parent | 4477694dbe96a5505022938b9dda7756b846847a (diff) | |
download | gitlab-ce-a16d26866ad14104d0ea7760f9de012f6d682d52.tar.gz |
Fix include_module matcher
-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 |