Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
delete comment
  • Loading branch information
HaradaTomohiro authored Jun 3, 2017
commit f0912c3b4b41b033345464ddcbf691b470b9c46b
33 changes: 17 additions & 16 deletions spec_integration/spec/webapi_integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,21 @@
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
#delete comment
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