We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a14bf commit ede533eCopy full SHA for ede533e
spec/grape/endpoint_spec.rb
@@ -115,6 +115,26 @@ def app
115
expect(memoized_status).to eq(201)
116
expect(last_response.body).to eq('Hello')
117
end
118
+
119
+ it 'is set as default to 204 for delete with no content' do
120
+ subject.delete('/home') do
121
+ end
122
123
+ delete '/home'
124
+ expect(last_response.status).to eq(204)
125
+ expect(last_response.body).to eq('')
126
127
128
+ it 'is set as default to 200 for delete with content' do
129
+ subject.format :json
130
131
+ {}
132
133
134
135
+ expect(last_response.status).to eq(200)
136
+ expect(last_response.body).to eq('{}')
137
138
139
140
describe '#header' do
0 commit comments