Class: RSpec::Raml::Matchers::NullMatcher

Inherits:
Abstract
  • Object
show all
Defined in:
lib/rspec/raml/matchers/null_matcher.rb

Instance Attribute Summary

Attributes inherited from Abstract

#raml, #response, #status, #url, #verb

Instance Method Summary collapse

Methods inherited from Abstract

#matches?

Constructor Details

#initialize(verb, url, status) ⇒ NullMatcher

Returns a new instance of NullMatcher.



7
8
9
# File 'lib/rspec/raml/matchers/null_matcher.rb', line 7

def initialize(verb, url, status)
  super(nil, verb, url, status)
end

Instance Method Details

#failure_messageObject



11
12
13
# File 'lib/rspec/raml/matchers/null_matcher.rb', line 11

def failure_message
  "RAML not found. Here's something to get you started:\n\n#{template}"
end