Method: ResponseRequestHelper#expect_response_with_pdf

Defined in:
lib/rspec/helpers/response_request_helper.rb

#expect_response_with_pdfObject

test a response that contains a PDF file



202
203
204
205
206
# File 'lib/rspec/helpers/response_request_helper.rb', line 202

def expect_response_with_pdf
    @@response_json = nil
    expect(response).to have_http_status(:success)
    expect(response.content_type).to eq("application/pdf")
end