From 7b46fd6d04b3f1ba1c2ae175dd0f7fb430d0e605 Mon Sep 17 00:00:00 2001 From: stree1234 Date: Sat, 20 May 2017 13:45:42 +0900 Subject: [PATCH 1/5] Add Comment! --- webapi/config-webapi.ru | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapi/config-webapi.ru b/webapi/config-webapi.ru index 43e3689..112464a 100644 --- a/webapi/config-webapi.ru +++ b/webapi/config-webapi.ru @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# HELLO $LOAD_PATH.unshift File.expand_path('../lib', __FILE__) @@ -32,4 +33,4 @@ map '/api' do map '/0.0.1' do run Webapi::Endpoints::V001::Webapi.new end -end \ No newline at end of file +end From 4f4100efbb6886bdc5d881ed724f5109859f4b8e Mon Sep 17 00:00:00 2001 From: stree1234 Date: Sat, 3 Jun 2017 13:17:19 +0900 Subject: [PATCH 2/5] Remove comment out --- .../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..999bad0 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 7c70cf275d3c47be56f60124dffcacfa9ed1ba12 Mon Sep 17 00:00:00 2001 From: stree1234 Date: Sat, 3 Jun 2017 13:31:29 +0900 Subject: [PATCH 3/5] Comment out --- .../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 999bad0..4b113ef 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 818d4712dc4bfb0ec81acc34357bca593495dfbf Mon Sep 17 00:00:00 2001 From: stree1234 Date: Sat, 3 Jun 2017 15:57:10 +0900 Subject: [PATCH 4/5] Edit spec --- .../spec/webapi_integration_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec_integration/spec/webapi_integration_spec.rb b/spec_integration/spec/webapi_integration_spec.rb index 4b113ef..930be44 100644 --- a/spec_integration/spec/webapi_integration_spec.rb +++ b/spec_integration/spec/webapi_integration_spec.rb @@ -37,15 +37,15 @@ 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 '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 From 8343388fc85ccc4e1d74ac494eca11a6bf8e8050 Mon Sep 17 00:00:00 2001 From: stree1234 Date: Sat, 3 Jun 2017 16:18:49 +0900 Subject: [PATCH 5/5] comment out --- .../spec/webapi_integration_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec_integration/spec/webapi_integration_spec.rb b/spec_integration/spec/webapi_integration_spec.rb index 930be44..4b113ef 100644 --- a/spec_integration/spec/webapi_integration_spec.rb +++ b/spec_integration/spec/webapi_integration_spec.rb @@ -37,15 +37,15 @@ 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 '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