Sha256: 89043ac26a42090c8d8ab2e313ba74ba86d8077a6bf205bdf762ed920f0a1407
Contents?: true
Size: 702 Bytes
Versions: 11
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' describe QuickbooksWebConnector::QwcController do describe 'GET :download' do before { get :download, format: :xml, use_route: 'quickbooks_web_connector' } it 'responds with success' do expect(response).to be_success end it 'responds as XML' do expect(response.header['Content-Type']).to match(/application\/xml/) end it 'sends the file as an attachment' do expect(response.header['Content-Disposition']).to match(/attachment/) end it 'names the file' do expect(response.header['Content-Disposition']).to match(/qbwc\.qwc/) end it 'renders the qwc template' do assert_template :qwc end end end
Version data entries
11 entries across 11 versions & 1 rubygems