Class: RSpecApi::Matchers::PageLinks::Matcher
Instance Attribute Summary
#response
Instance Method Summary
collapse
#failure_message_for_should, #failure_message_for_should_not
Instance Method Details
#description ⇒ Object
12
13
14
|
# File 'lib/rspec-api/matchers/page_links/matcher.rb', line 12
def description
%Q{include a 'Link' to the previous page}
end
|
#matches?(response) ⇒ Boolean
7
8
9
10
|
# File 'lib/rspec-api/matchers/page_links/matcher.rb', line 7
def matches?(response)
super && (['Link'] || '') =~ %r{<.+?>. rel\="prev"}
end
|