gitlab-org--gitlab-foss/spec/support/matchers/include_module.rb
2019-07-25 17:33:34 +12:00

15 lines
319 B
Ruby

# frozen_string_literal: true
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