spec/netsuite/configuration_spec.rb in netsuite-0.0.44 vs spec/netsuite/configuration_spec.rb in netsuite-0.0.45

- old
+ new

@@ -126,6 +126,22 @@ '#account is a required configuration value. Please set it by calling NetSuite::Configuration.account = 1234') end end end + + describe '#role' do + context 'when no role is defined' do + it 'defaults to "3"' do + config.role.internal_id.should == "3" + end + end + end + + describe '#role=' do + it 'sets the role according to the input value' do + config.role = "6" + config.role.internal_id.should == "6" + end + end + end