spec/github/gists_spec.rb in github_api-0.6.1 vs spec/github/gists_spec.rb in github_api-0.6.2

- old
+ new

@@ -198,14 +198,14 @@ } context "resouce created" do before do stub_post("/gists"). - with(:body => JSON.generate(inputs)). + with(inputs). to_return(:body => fixture('gists/gist.json'), - :status => 201, - :headers => {:content_type => "application/json; charset=utf-8"}) + :status => 201, + :headers => {:content_type => "application/json; charset=utf-8"}) end it "should fail to create resource if 'files' input is missing" do expect { github.gists.create inputs.except('files') @@ -278,13 +278,13 @@ } context "resouce edited" do before do stub_patch("/gists/#{gist_id}"). - with(:body => JSON.generate(inputs)). + with(inputs). to_return(:body => fixture('gists/gist.json'), - :status => 200, - :headers => {:content_type => "application/json; charset=utf-8"}) + :status => 200, + :headers => {:content_type => "application/json; charset=utf-8"}) end it "should edit resource successfully" do github.gists.edit gist_id, inputs a_patch("/gists/#{gist_id}").with(inputs).should have_been_made