diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-03-28 05:49:57 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-22 13:13:46 +0300 |
commit | 9874cf59534981b3e3192a4b3be895fc819d20fa (patch) | |
tree | 7c7e705821b63f43823ac85d300527a7a6b2d317 | |
parent | 990ddeba850fd6945a2edc4aadfa3d7e40f7553f (diff) |
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 |