We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:error
format
it 'raised :error from middleware' do middleware = Class.new(Grape::Middleware::Base) do def before throw :error, message: "Unauthorized", status: 42 end end subject.format :xml subject.use middleware subject.get do end get "/" last_response.status.should == 42 last_response.body.should == <<-XML <?xml version="1.0" encoding="UTF-8"?> <error> <message>Unauthorized</message> </error> XML end
The format selected is :txt.
:txt
The text was updated successfully, but these errors were encountered:
d510892
No branches or pull requests
The format selected is
:txt
.The text was updated successfully, but these errors were encountered: