spec/netsuite/configuration_spec.rb in netsuite-0.0.49 vs spec/netsuite/configuration_spec.rb in netsuite-0.0.50
- old
+ new
@@ -36,9 +36,17 @@
context 'when the wsdl has not been set' do
it 'returns a path to the WSDL to use for the API' do
config.wsdl.should match(/.*\/netsuite\/wsdl\/2011_2\.wsdl/)
end
end
+
+ context 'when the wsdl has not been set, but the API has been set' do
+ it 'should correctly return the full HTTP sandbox URL' do
+ config.api_version '2013_1'
+ config.sandbox false
+ config.wsdl.should eql('https://webservices.netsuite.com/wsdl/v2013_1_0/netsuite.wsdl')
+ end
+ end
end
describe '#auth_header' do
before do
config.email = 'user@example.com'