Sha256: c1ec06035ae434dc1780bf13d3961c3ea56dd901ab6d72bdd8f3ecb50530f003

Contents?: true

Size: 425 Bytes

Versions: 387

Compression:

Stored size: 425 Bytes

Contents

require 'spec_helper'

describe Travis::CLI::Cancel do
  example 'travis cancel' do
    run_cli('cancel', '-t', 'token').should be_success
    $params['id'].should be == "4125095"
    $params['entity'].should be == "builds"
  end

  example 'travis cancel 6180.1' do
    run_cli('cancel', '6180.1', '-t', 'token').should be_success
    $params['id'].should be == "4125096"
    $params['entity'].should be == "jobs"
  end
end

Version data entries

387 entries across 387 versions & 3 rubygems

Version Path
travis-1.8.10.travis.943.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.942.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.941.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.940.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.935.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.933.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.931.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.930.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.929.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.927.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.925.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.924.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.923.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.922.11 spec/cli/cancel_spec.rb
travis-1.8.10.travis.921.11 spec/cli/cancel_spec.rb
travis-1.8.9 spec/cli/cancel_spec.rb
travis-1.8.9.travis.919.11 spec/cli/cancel_spec.rb
travis-1.8.9.travis.918.11 spec/cli/cancel_spec.rb
travis-1.8.9.travis.916.11 spec/cli/cancel_spec.rb
travis-1.8.9.travis.875.3 spec/cli/cancel_spec.rb