spec/support/fake_api.rb in travis-1.3.1 vs spec/support/fake_api.rb in travis-1.4.0

- old
+ new

@@ -654,11 +654,11 @@ "type"=>"Log", "body"=> "$ export GEM=railties\n"}}.to_json end - get '/repos/travis-ci/travis' do + get '/repos/*/travis' do # hack hack request.path_info = '/repos/rails/rails' pass end @@ -701,9 +701,19 @@ {'id' => 'foo', 'name' => 'ruby-1', 'host' => 'ruby-1.worker.travis-ci.org', 'state' => 'ready', 'payload' => nil}}.to_json + end + + get '/accounts/' do + {"accounts"=> + [{'id' => 123, + 'name' => "Konstantin Haase", + 'login' => 'rkh', + 'type' => 'user', + 'repos_count' => 200 + }]}.to_json end post '/requests' do $params = params "{}"