BigW Consortium Gitlab

include_module.rb 288 Bytes
Newer Older
1 2 3 4 5
RSpec::Matchers.define :include_module do |expected|
  match do
    described_class.included_modules.include?(expected)
  end

6
  description do
7
    "includes the #{expected} module"
8 9 10
  end

  failure_message do
11 12 13
    "expected #{described_class} to include the #{expected} module"
  end
end