Sha256: f540b8803a79a21091227879cdc27e9ed34f7c56783b1157cd3ad4cbf3b5adf3

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

require 'spec_helper'

describe 'QuickbooksWebConnector routing' do

  before do
    @routes = QuickbooksWebConnector::Engine.routes
  end

  it 'defaults to XML for downloading QWC' do
    expect(get: '/qwc').to route_to(controller: 'quickbooks_web_connector/qwc', action: 'download', format: :xml)
  end

  it 'routes the SOAP endpoint' do
    expect(post: '/soap').to route_to(controller: 'quickbooks_web_connector/soap', action: 'endpoint')
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
quickbooks_web_connector-0.0.6 spec/routing/quickbooks_web_connector_spec.rb
quickbooks_web_connector-0.0.5 spec/routing/quickbooks_web_connector_spec.rb
quickbooks_web_connector-0.0.4 spec/routing/quickbooks_web_connector_spec.rb
quickbooks_web_connector-0.0.3 spec/routing/quickbooks_web_connector_spec.rb
quickbooks_web_connector-0.0.2 spec/routing/quickbooks_web_connector_spec.rb
quickbooks_web_connector-0.0.1 spec/routing/quickbooks_web_connector_spec.rb