spec/sem4r/campaign/campaign_service_spec.rb in sem4r-0.1.2 vs spec/sem4r/campaign/campaign_service_spec.rb in sem4r-0.1.3
- old
+ new
@@ -35,11 +35,11 @@
it "should define 'all'" do
response_xml = read_xml("campaign", "get-res.xml")
connector = mock("connector")
connector.should_receive(:send).and_return(response_xml)
service = CampaignService.new(connector)
- soap_message = service.all( @credentials )
+ soap_message = service.all(@credentials)
els = soap_message.response.xpath("//getResponse")
els.should_not be_empty
end
it "should define 'create'" do
@@ -57,10 +57,10 @@
@credentials.should_receive(:mutable?).and_return(true)
response_xml = read_xml("campaign", "mutate_add-res.xml")
connector = mock("connector")
connector.should_receive(:send).and_return(response_xml)
service = CampaignService.new(connector)
- soap_message = service.delete( @credentials, "xml" )
+ soap_message = service.delete(@credentials, "xml" )
els = soap_message.response.xpath("//mutateResponse")
els.should_not be_empty
end
end