Module: RSpecApi::Expectations::HeadersExpectations
- Defined in:
- lib/rspec-api/expectations/headers.rb
Instance Method Summary collapse
- #expect_content_type_header(response, type) ⇒ Object
- #expect_prev_page_link_header(response, has_prev_page) ⇒ Object
Instance Method Details
#expect_content_type_header(response, type) ⇒ Object
7 8 9 |
# File 'lib/rspec-api/expectations/headers.rb', line 7 def expect_content_type_header(response, type) expect(response).to include_content_type type end |
#expect_prev_page_link_header(response, has_prev_page) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/rspec-api/expectations/headers.rb', line 11 def expect_prev_page_link_header(response, has_prev_page) if has_prev_page == false expect(response).not_to have_prev_page_link else expect(response).to have_prev_page_link end end |