Method: RSpec::Matchers::BuiltIn::Include#initialize

Defined in:
lib/rspec/matchers/built_in/include.rb

#initialize(*expecteds) ⇒ Include

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Include.

Raises:

  • (ArgumentError)


15
16
17
18
# File 'lib/rspec/matchers/built_in/include.rb', line 15

def initialize(*expecteds)
  raise(ArgumentError, 'include() is not supported, please supply an argument') if expecteds.empty?
  @expecteds = expecteds
end