blob: 0a78af1e90e2f06a330c8901d7eef7a799b0e63a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
RSpec::Matchers.define :include_module do |expected|
match do
described_class.included_modules.include?(expected)
end
description do
"includes the #{expected} module"
end
failure_message do
"expected #{described_class} to include the #{expected} module"
end
end
|