quickbooks_web_connector 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quickbooks_web_connector/errors.rb +6 -0
- data/lib/quickbooks_web_connector/job.rb +1 -1
- data/lib/quickbooks_web_connector/soap_wrapper/defaultServant.rb +14 -4
- data/lib/quickbooks_web_connector/version.rb +1 -1
- data/lib/quickbooks_web_connector.rb +1 -0
- data/spec/dummy/log/test.log +678 -0
- data/spec/lib/quickbooks_web_connector/job_spec.rb +1 -1
- data/spec/lib/quickbooks_web_connector/soap_wrapper/defaultServant_spec.rb +9 -0
- data/spec/spec_helper.rb +6 -0
- data/spec/support/redis/dump.rdb +0 -0
- data/spec/support/redis/stdout +378150 -0
- metadata +4 -3
@@ -17,7 +17,7 @@ describe QuickbooksWebConnector::Job do
|
|
17
17
|
allow(SomeBuilder).to receive(:perform).and_raise(Exception)
|
18
18
|
job = described_class.new 'request_builder_class' => 'SomeBuilder'
|
19
19
|
|
20
|
-
expect
|
20
|
+
expect(job.request_xml).to eq(:failed)
|
21
21
|
|
22
22
|
expect(QuickbooksWebConnector::Failure.count).to be(1)
|
23
23
|
end
|
@@ -106,6 +106,15 @@ describe QuickbooksWebConnector::SoapWrapper::QBWebConnectorSvcSoap do
|
|
106
106
|
expect(response).to be_a(QuickbooksWebConnector::SoapWrapper::SendRequestXMLResponse)
|
107
107
|
expect(response.sendRequestXMLResult).to eq('<some><xml></xml></some>')
|
108
108
|
end
|
109
|
+
|
110
|
+
it 'continues onto the next job when the builder errors' do
|
111
|
+
allow(SomeBuilder).to receive(:perform).with(1).and_return('<some><xml></xml></some>')
|
112
|
+
QuickbooksWebConnector.enqueue SomeBuilderThatErrors, SomeHandler, 1
|
113
|
+
QuickbooksWebConnector.enqueue SomeBuilder, SomeHandler, 1
|
114
|
+
|
115
|
+
expect(response).to be_a(QuickbooksWebConnector::SoapWrapper::SendRequestXMLResponse)
|
116
|
+
expect(response.sendRequestXMLResult).to eq('<some><xml></xml></some>')
|
117
|
+
end
|
109
118
|
end
|
110
119
|
|
111
120
|
describe 'receiveResponseXML' do
|
data/spec/spec_helper.rb
CHANGED
data/spec/support/redis/dump.rdb
CHANGED
Binary file
|