spec/support/fake_api.rb in travis-1.6.2.travis.364.4 vs spec/support/fake_api.rb in travis-1.6.2.travis.365.4
- old
+ new
@@ -684,29 +684,9 @@
get '/repos/891/key' do
{"key"=>RAILS_KEY}.to_json
end
- get '/workers/' do
- {"workers"=>
- [{'id' => 'foo',
- 'name' => 'ruby-1',
- 'host' => 'ruby-1.worker.travis-ci.org',
- 'state' => 'ready',
- 'payload' => {
- "job"=>{"id"=>4125096},
- "repo"=>{"id"=>891}}}]}.to_json
- end
-
- get '/workers/foo' do
- {"worker"=>
- {'id' => 'foo',
- 'name' => 'ruby-1',
- 'host' => 'ruby-1.worker.travis-ci.org',
- 'state' => 'ready',
- 'payload' => nil}}.to_json
- end
-
get '/accounts/' do
{"accounts"=>
[{'name' => "Konstantin Haase",
'login' => 'rkh',
'type' => 'user',