From 3e3589fffa99303fa35e8b63b173899de421a66f Mon Sep 17 00:00:00 2001 From: topse29036 Date: Sat, 3 Jun 2017 15:11:31 +0900 Subject: [PATCH 1/2] Update webapi_integration_spec.rb --- .../spec/webapi_integration_spec.rb | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/spec_integration/spec/webapi_integration_spec.rb b/spec_integration/spec/webapi_integration_spec.rb index a100854..e0aa487 100644 --- a/spec_integration/spec/webapi_integration_spec.rb +++ b/spec_integration/spec/webapi_integration_spec.rb @@ -37,20 +37,20 @@ end end - # describe 'update' do - # before do - # comment_params[:comment] = "webapi sample message 2" - # end - # it 'update api not allowed' do - # res = WebAPIClient::Comment.update(comment["id"], comment_params) - # expect(res["code"]).to eq 405 - # end - # end - - # describe 'delete' do - # it 'delete api not allowed' do - # res = WebAPIClient::Comment.delete(comment["id"]) - # expect(res["code"]).to eq 405 - # end - # end + describe 'update' do + before do + comment_params[:comment] = "webapi sample message 2" + end + it 'update api not allowed' do + res = WebAPIClient::Comment.update(comment["id"], comment_params) + expect(res["code"]).to eq 405 + end + end + + describe 'delete' do + it 'delete api not allowed' do + res = WebAPIClient::Comment.delete(comment["id"]) + expect(res["code"]).to eq 405 + end + end end From 86e4ff2da0bbfa824b9fa6d8eba6acf28b408c17 Mon Sep 17 00:00:00 2001 From: topse29036 Date: Sat, 3 Jun 2017 16:27:43 +0900 Subject: [PATCH 2/2] Update webapi_integration_spec.rb --- .../spec/webapi_integration_spec.rb | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/spec_integration/spec/webapi_integration_spec.rb b/spec_integration/spec/webapi_integration_spec.rb index e0aa487..555c60f 100644 --- a/spec_integration/spec/webapi_integration_spec.rb +++ b/spec_integration/spec/webapi_integration_spec.rb @@ -37,20 +37,20 @@ end end - describe 'update' do - before do - comment_params[:comment] = "webapi sample message 2" - end - it 'update api not allowed' do - res = WebAPIClient::Comment.update(comment["id"], comment_params) - expect(res["code"]).to eq 405 - end - end - - describe 'delete' do - it 'delete api not allowed' do - res = WebAPIClient::Comment.delete(comment["id"]) - expect(res["code"]).to eq 405 - end - end +# describe 'update' do +# before do +# comment_params[:comment] = "webapi sample message 2" +# end +# it 'update api not allowed' do +# res = WebAPIClient::Comment.update(comment["id"], comment_params) +# expect(res["code"]).to eq 405 +# end +# end + +# describe 'delete' do +# it 'delete api not allowed' do +# res = WebAPIClient::Comment.delete(comment["id"]) +# expect(res["code"]).to eq 405 +# end +# end end