spec/support/fake_api.rb in travis-1.7.2.travis.630.5 vs spec/support/fake_api.rb in travis-1.7.2.travis.632.5
- old
+ new
@@ -17,9 +17,13 @@
def authorized?
env['HTTP_AUTHORIZATION'] == 'token token'
end
+ get '/' do
+ "{}"
+ end
+
get '/users/' do
halt(403, 'wrong token') unless authorized?
{"user"=>
{"id"=>267,
"name"=>"Konstantin Haase",