Skip to content
Open
Changes from all commits
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
32 changes: 16 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,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