spec/github/request/jsonize_spec.rb in github_api-0.11.3 vs spec/github/request/jsonize_spec.rb in github_api-0.12.0

- old
+ new

@@ -16,28 +16,28 @@ def result_type() result[:request_headers]['Content-Type'] end context 'no body' do let(:result) { process(nil) } - it "doesn't change body" do - result_body.should be_nil + it "returns empty object" do + expect(result_body).to eq('{}') end it "doesn't add content type" do - result_type.should be_nil + expect(result_type).to be_nil end end context 'empty body' do let(:result) { process('') } - it "doesn't change body" do - result_body.should be_empty + it "returns empty object" do + expect(result_body).to eq('{}') end - it "doesn't add conten type" do - result_type.should be_nil + it "doesn't add content type" do + expect(result_type).to be_nil end end context 'string body' do let(:result) { process('{"a":1}')} @@ -84,7 +84,6 @@ it "doesn't change content type" do result_type.should eql 'application/json; charset=utf-8' end end - end # Github::Request::Jsonize