Sha256: f4645b2f3d95610021241575e0ed3b2138cae05a07605c46e0f55c51c5ea449d

Contents?: true

Size: 968 Bytes

Versions: 51

Compression:

Stored size: 968 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 -d' do
    run_cli('history', '-d').should be_success
    stdout.should be =~ /2013-01-13 \d+:55:17 #6180 failed:    master Associaton -> Association/
  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

51 entries across 51 versions & 1 rubygems

Version Path
travis-1.6.9.travis.479.6 spec/cli/history_spec.rb
travis-1.6.9.travis.463.6 spec/cli/history_spec.rb
travis-1.6.9.travis.462.6 spec/cli/history_spec.rb
travis-1.6.9.travis.461.6 spec/cli/history_spec.rb
travis-1.6.9.travis.458.6 spec/cli/history_spec.rb
travis-1.6.8 spec/cli/history_spec.rb
travis-1.6.8.travis.457.6 spec/cli/history_spec.rb
travis-1.6.8.travis.456.6 spec/cli/history_spec.rb
travis-1.6.8.travis.455.6 spec/cli/history_spec.rb
travis-1.6.8.travis.454.6 spec/cli/history_spec.rb
travis-1.6.8.travis.453.6 spec/cli/history_spec.rb
travis-1.6.8.travis.452.6 spec/cli/history_spec.rb
travis-1.6.8.travis.451.6 spec/cli/history_spec.rb
travis-1.6.8.travis.450.6 spec/cli/history_spec.rb
travis-1.6.8.travis.449.6 spec/cli/history_spec.rb
travis-1.6.8.travis.447.6 spec/cli/history_spec.rb
travis-1.6.7.travis.446.6 spec/cli/history_spec.rb
travis-1.6.7 spec/cli/history_spec.rb
travis-1.6.7.travis.445.6 spec/cli/history_spec.rb
travis-1.6.7.travis.443.6 spec/cli/history_spec.rb