Sha256: 38a96e51b726fef7225df13f0698b8ec389cf07bcc5a58325dec653defb4947e

Contents?: true

Size: 631 Bytes

Versions: 28

Compression:

Stored size: 631 Bytes

Contents

require 'spec_helper'

describe Travis::CLI::Token do
  example "travis token (access token set)" do
    run_cli('token', '-t', 'super-secret').should be_success
    stdout.should == "super-secret\n"
    stderr.should be_empty
  end

  example "travis token -i (access token set)" do
    run_cli('token', '-it', 'super-secret').should be_success
    stdout.should == "Your access token is super-secret\n"
    stderr.should be_empty
  end

  example 'travis token (no access token set)' do
    run_cli('token').should_not be_success

    stdout.should be_empty
    stderr.should == "not logged in, please run #$0 login\n"
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
travis-1.5.6.travis.307.4 spec/cli/token_spec.rb
travis-1.5.6.travis.306.4 spec/cli/token_spec.rb
travis-1.5.6.travis.304.4 spec/cli/token_spec.rb
travis-1.5.6.travis.303.4 spec/cli/token_spec.rb
travis-1.5.6.travis.301.4 spec/cli/token_spec.rb
travis-1.5.6.travis.299.4 spec/cli/token_spec.rb
travis-1.5.6.travis.297.4 spec/cli/token_spec.rb
travis-1.5.6.travis.296.4 spec/cli/token_spec.rb
travis-1.5.5 spec/cli/token_spec.rb
travis-1.5.4 spec/cli/token_spec.rb
travis-1.5.3 spec/cli/token_spec.rb
travis-1.5.2 spec/cli/token_spec.rb
travis-1.5.1 spec/cli/token_spec.rb
travis-1.5.0 spec/cli/token_spec.rb
travis-1.4.0 spec/cli/token_spec.rb
travis-1.3.1 spec/cli/token_spec.rb
travis-1.3.0 spec/cli/token_spec.rb
travis-1.2.8 spec/cli/token_spec.rb
travis-1.2.7 spec/cli/token_spec.rb
travis-1.2.6 spec/cli/token_spec.rb