Sha256: b156c44da3ff4d97713cdee8f6a9aabd7dd85759de515902eddfc91e2b5cbd65
Contents?: true
Size: 1.33 KB
Versions: 8
Compression:
Stored size: 1.33 KB
Contents
require 'spec_helper' require 'rexml/document' describe 'quickbooks_web_connector/qwc/qwc' do before do QuickbooksWebConnector.configure { |c| c.username = 'jsmith' } render end after { QuickbooksWebConnector.configure { |c| c.username = 'web_connector' } } let(:root) { REXML::Document.new(rendered).root } it 'wraps everything in a QBWCXML element' do expect(root.name).to eq('QBWCXML') end it 'includes the app name' do expect(root.text('AppName')).to eq('My QBWC App') end it 'includes the app ID' do expect(root.text('AppID')).to be_nil end it 'includes the endpoint url' do expect(root.text('AppURL')).to eq('http://test.host/quickbooks_web_connector/soap') end it 'includes the description' do expect(root.text('AppDescription')).to eq('My QBWC App Description') end it 'includes the support url' do expect(root.text('AppSupport')).to eq('http://test.host/') end it 'includes the username' do expect(root.text('UserName')).to eq('jsmith') end it 'includes the owner id' do expect(root.text('OwnerID')).to eq('{d69682e6-4436-44bc-bd19-d6bfbd11778d}') end it 'includes the file id' do expect(root.text('FileID')).to eq('{916222f3-c574-4c70-8c9d-e3cec2634e49}') end it 'sets the type to QBFS' do expect(root.text('QBType')).to eq('QBFS') end end
Version data entries
8 entries across 8 versions & 1 rubygems