spec/netsuite/configuration_spec.rb in netsuite-0.6.3 vs spec/netsuite/configuration_spec.rb in netsuite-0.6.4

- old
+ new

@@ -14,9 +14,21 @@ config.reset! expect(config.attributes).to be_empty end end + describe '#filters' do + it 'filters out email and password by default' do + expect(config.filters).to eq([:password, :email]) + end + + it 'allows the user to set custom filters' do + config.filters([:special]) + + expect(config.filters).to eq([:special]) + end + end + describe '#connection' do it 'returns a Savon::Client object that allows requests to the service' do # reset clears out the password info config.email 'me@example.com' config.password 'me@example.com'