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 7beec80 commit ca49961Copy full SHA for ca49961
spec/grape/api_spec.rb
@@ -2031,6 +2031,22 @@ def static
2031
expect(route.route_settings[:custom]).to eq(key: 'value')
2032
end
2033
2034
+ describe 'status' do
2035
+ it 'can be set to arbitrary Fixnum value' do
2036
+ subject.get '/foo' do
2037
+ status 210
2038
+ end
2039
+ get '/foo'
2040
+ expect(last_response.status).to eq 210
2041
2042
+ it 'can be set with a status code symbol' do
2043
2044
+ status :see_other
2045
2046
2047
+ expect(last_response.status).to eq 303
2048
2049
2050
2051
2052
context 'desc' do
0 commit comments