spec/nutshell-crm_spec.rb in nutshell-crm-0.0.4 vs spec/nutshell-crm_spec.rb in nutshell-crm-0.0.5

- old
+ new

@@ -26,9 +26,17 @@ context 'after a new Nutshell client has been instantiated' do it 'should get a valid API service url that starts with https://' do @nutshell.api_url.should match 'https://' end + it 'should consider global stub_response property settings' do + @nutshell.stub_responses = false + @nutshell.find_leads({status: 0}).first['stub'].should_not be true + @nutshell.stub_responses = true + @nutshell.find_leads({status: 0}).first['stub'].should be true + @nutshell.stub_responses = nil + end + it 'should find open leads' do @nutshell.find_leads({status: 0}).should_not be_empty end it 'should describe custom fields' do \ No newline at end of file