spec/cli/restart_spec.rb in travis-1.8.14.travis.1183.9 vs spec/cli/restart_spec.rb in travis-1.8.14.travis.1184.9
- old
+ new
@@ -1,15 +1,15 @@
require 'spec_helper'
describe Travis::CLI::Restart do
example 'travis restart' do
run_cli('restart', '-t', 'token').should be_success
- $params['build_id'].should be == "4125095"
- $params['job_id'].should be_nil
+ $params['id'].should be == "4125095"
+ $params['entity'].should be == "builds"
end
example 'travis restart 6180.1' do
run_cli('restart', '6180.1', '-t', 'token').should be_success
- $params['build_id'].should be_nil
- $params['job_id'].should be == "4125096"
+ $params['entity'].should be == "jobs"
+ $params['id'].should be == "4125096"
end
-end
\ No newline at end of file
+end