spec/cases/api_spec.rb in koala-2.5.0 vs spec/cases/api_spec.rb in koala-3.0.0.beta1

- old
+ new

@@ -126,11 +126,11 @@ it "returns the body of the request as JSON if no http_component is given" do response = double('response', :body => 'body', :status => 200) allow(Koala).to receive(:make_request).and_return(response) json_body = double('JSON body') - allow(JSON).to receive(:load).and_return([json_body]) + allow(JSON).to receive(:parse).and_return([json_body]) expect(@service.api('anything')).to eq(json_body) end it "executes an error checking block if provided" do @@ -179,24 +179,18 @@ describe "with an access token" do before(:each) do @api = Koala::Facebook::API.new(@token) end - it_should_behave_like "Koala RestAPI" - it_should_behave_like "Koala RestAPI with an access token" - it_should_behave_like "Koala GraphAPI" it_should_behave_like "Koala GraphAPI with an access token" it_should_behave_like "Koala GraphAPI with GraphCollection" end describe "without an access token" do before(:each) do @api = Koala::Facebook::API.new end - - it_should_behave_like "Koala RestAPI" - it_should_behave_like "Koala RestAPI without an access token" it_should_behave_like "Koala GraphAPI" it_should_behave_like "Koala GraphAPI without an access token" it_should_behave_like "Koala GraphAPI with GraphCollection" end