Module: RSpec::Raml::Matchers

Defined in:
lib/rspec/raml/matchers.rb,
lib/rspec/raml/matchers/abstract.rb,
lib/rspec/raml/matchers/match_raml.rb,
lib/rspec/raml/matchers/null_matcher.rb,
lib/rspec/raml/matchers/match_raml_body.rb,
lib/rspec/raml/matchers/match_raml_status.rb,
lib/rspec/raml/matchers/be_raml_content_type.rb

Defined Under Namespace

Modules: ClassMethods Classes: Abstract, BeRamlContentType, MatchRaml, MatchRamlBody, MatchRamlStatus, NullMatcher

Constant Summary collapse

MATCHERS =
[
  MatchRaml,
  MatchRamlStatus,
  BeRamlContentType,
  MatchRamlBody
]

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



19
20
21
22
23
24
25
26
27
28
# File 'lib/rspec/raml/matchers.rb', line 19

def self.included(base)
  base.extend ClassMethods
  base.let(:_raml_finder) do
    raise ArgumentError, <<-EOMSG.strip_heredoc
      You need to specify a RAML specification file. Example:

        raml { Rails.root.join('docs/api/v1.raml') }
    EOMSG
  end
end