Permalink
Browse files

Fixing sandbox configuration bug

  • Loading branch information...
1 parent e81017c commit bc849f660ea256934bb5cd6e515ddfb7b719e97f @iloveitaly iloveitaly committed Mar 21, 2013
Showing with 3 additions and 2 deletions.
  1. +1 −1 lib/netsuite/configuration.rb
  2. +2 −1 spec/netsuite/configuration_spec.rb
@@ -39,7 +39,7 @@ def sandbox(flag = nil)
if flag.nil?
attributes[:flag] ||= false
else
- self.sandbox = true
+ self.sandbox = flag
end
end
@@ -41,7 +41,8 @@
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.api_version '2013_1'
+ config.sandbox false
config.wsdl.should eql('https://webservices.netsuite.com/wsdl/v2013_1_0/netsuite.wsdl')
end
end

0 comments on commit bc849f6

Please sign in to comment.