spec/netsuite/configuration_spec.rb in netsuite-0.1.0 vs spec/netsuite/configuration_spec.rb in netsuite-0.2.0
- old
+ new
@@ -64,17 +64,11 @@
config.auth_header.should eql({
'platformMsgs:passport' => {
'platformCore:email' => 'user@example.com',
'platformCore:password' => 'myPassword',
'platformCore:account' => '1234',
- 'platformCore:role' => {},
- :attributes! => {
- 'platformCore:role' => {
- :internalId => '3',
- :type => 'role'
- }
- }
+ 'platformCore:role' => { :@type => 'role', :@internalId => '3' },
}
})
end
end
@@ -143,18 +137,18 @@
describe '#role' do
context 'when no role is defined' do
it 'defaults to "3"' do
- config.role.internal_id.should == "3"
+ config.role.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"
+ config.role.should == "6"
end
end
describe '#api_version' do
context 'when no api_version is defined' do