Sha256: 872fe469f6d8d1e8edd030ec74e7c67880d40707c6a770ebccd8a88ba09727cc

Contents?: true

Size: 778 Bytes

Versions: 5

Compression:

Stored size: 778 Bytes

Contents

require 'spec_helper'

describe Travis::CLI::History do
  example 'travis history' do
    run_cli('history').should be_success
    stdout.should be == "#6180 failed: master Associaton -> Association\n"
  end

  example 'travis history -a 6180' do
    run_cli('history', '-a', '6180').should be_success
    stdout.should be == ''
  end

  example 'travis history -b master' do
    run_cli('history', '-b', 'master').should be_success
    stdout.should be == "#6180 failed: master Associaton -> Association\n"
  end

  example 'travis history -b not-master' do
    run_cli('history', '-b', 'not-master').should be_success
    stdout.should be_empty
  end

  example 'travis history -p 5' do
    run_cli('history', '-p', '5').should be_success
    stdout.should be_empty
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
travis-1.2.0 spec/cli/history_spec.rb
travis-1.1.3 spec/cli/history_spec.rb
travis-1.1.2 spec/cli/history_spec.rb
travis-1.1.1 spec/cli/history_spec.rb
travis-1.1.0 spec/cli/history_spec.rb