Remove obsolete resources
This commit is contained in:
parent
c1d9ac39ba
commit
202508ca95
@ -41,14 +41,6 @@ class LiquorCabinet < Sinatra::Base
|
||||
authorize_request(@user, @category, token) unless request.options?
|
||||
end
|
||||
|
||||
get "/ohai" do
|
||||
"Ohai."
|
||||
end
|
||||
|
||||
get "/airbrake" do
|
||||
raise "Ohai, exception from Sinatra app"
|
||||
end
|
||||
|
||||
get "/:user/:category/:key" do
|
||||
get_data(@user, @category, @key)
|
||||
end
|
||||
|
||||
@ -7,12 +7,6 @@ describe "App" do
|
||||
LiquorCabinet
|
||||
end
|
||||
|
||||
it "says hello" do
|
||||
get "/ohai"
|
||||
assert last_response.ok?
|
||||
last_response.body.must_include "Ohai."
|
||||
end
|
||||
|
||||
it "returns 404 on non-existing routes" do
|
||||
get "/virginmargarita"
|
||||
last_response.status.must_equal 404
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user