Module: RSpecApi::Expectations::Response::Headers::PageLinks
- Defined in:
- lib/rspec-api/expectations/headers/page_links.rb
Instance Method Summary collapse
Instance Method Details
#expect_page_links(response, expectations = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rspec-api/expectations/headers/page_links.rb', line 8 def expect_page_links(response, expectations = {}) include RSpecApi::Matchers if should_check_page_links(response, expectations) if expectations[:page_links] it { expect(response).to have_page_links } else it { expect(response).not_to have_page_links } end end end |