class RSpecApi::Matchers::PageLinks::Matcher
Public Instance Methods
description()
click to toggle source
# File lib/rspec-api/matchers/page_links/matcher.rb, line 12 def description %Q{include a 'Link' to the previous page} end
matches?(response)
click to toggle source
Calls superclass method
RSpecApi::Matchers::Headers::Matcher#matches?
# File lib/rspec-api/matchers/page_links/matcher.rb, line 7 def matches?(response) # NOTE: Only use headers.fetch('Link', '') after http://git.io/CUz3-Q super && (headers['Link'] || '') =~ %r{<.+?>. rel\="prev"} end