spec/cases/api_base_spec.rb in koala-1.1.0 vs spec/cases/api_base_spec.rb in koala-1.2.0beta1

- old
+ new

@@ -42,11 +42,11 @@ response = mock('Mock KoalaResponse', :body => '', :status => 200) response.should_receive(http_component).and_return('') Koala.stub(:make_request).and_return(response) - @service.api('anything', 'get', {}, :http_component => http_component) + @service.api('anything', {}, 'get', :http_component => http_component) end it "should return the body of the request as JSON if no http_component is given" do response = stub('response', :body => 'body', :status => 200) Koala.stub(:make_request).and_return(response) @@ -96,6 +96,6 @@ Koala.should_receive(:make_request).with(path, anything, anything, anything).and_return(Koala::Response.new(200, 'true', {})) @service.api(path) end end -end \ No newline at end of file +end