Skip to content
Browse files

Minor tweak for api.

  • Loading branch information...
1 parent d4852d1 commit 82c0ede581814d9c2e21773631745e033c1c521a @lucassus committed Jan 11, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/mongo_browser/api.rb
  2. +1 −1 spec/lib/api_spec.rb
View
1 lib/mongo_browser/api.rb
@@ -3,6 +3,7 @@
module MongoBrowser
class Api < Grape::API
format :json
+ rescue_from :all, backtrace: true
helpers do
def server
View
2 spec/lib/api_spec.rb
@@ -163,7 +163,7 @@ def app
let(:page) { "invalid" }
it { should_not be_successful }
- it("responds with 400") { expect(response.status).to eq(400) }
+ it("responds with 403") { expect(response.status).to eq(403) }
it("should notify about invalid param") do
error = JSON.parse(response.body)["error"]

0 comments on commit 82c0ede

Please sign in to comment.
Something went wrong with that request. Please try again.