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.5.6.travis.337.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.336.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.333.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.332.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.330.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.329.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.326.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.324.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.323.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.320.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.319.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.317.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.315.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.314.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.312.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.307.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.306.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.304.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.303.4 spec/cli/cancel_spec.rb
travis-1.5.6.travis.301.4 spec/cli/cancel_spec.rb