Sha256: 597080bba7ab2639f4a84960c11e9b75f7fbb1a463cd2ee6c8f7df385149ddef

Contents?: true

Size: 746 Bytes

Versions: 5

Compression:

Stored size: 746 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Travis::CLI::Status do
  example 'travis status' do
    run_cli('status').should be_success
    stdout.should be == "failed\n"
  end

  example 'travis status -x' do
    run_cli('status', '-x').should_not be_success
    stdout.should be == "failed\n"
  end

  example 'travis status -q' do
    run_cli('status', '-q').should be_success
    stdout.should be_empty
  end

  example 'travis status -pqx' do
    run_cli('endpoint', '-pqx').should_not be_success
    stdout.should be_empty
  end

  example 'travis status -i' do
    run_cli('status', '-i', '--skip-completion-check', '-r', 'travis-ci/travis.rb').should be_success
    stdout.should be == "build #6180 failed\n"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
travis-1.13.3 spec/cli/status_spec.rb
travis-1.13.2 spec/cli/status_spec.rb
travis-1.13.1 spec/cli/status_spec.rb
travis-1.13.0 spec/cli/status_spec.rb
travis-1.12.0 spec/cli/status_spec.rb