Sha256: e10db9a031864f9d321c3117b99da5233e30b78033ff18108ac517cc3002d343

Contents?: true

Size: 1.13 KB

Versions: 280

Compression:

Stored size: 1.13 KB

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

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

Version data entries

280 entries across 280 versions & 3 rubygems

Version Path
travis-1.8.12.travis.1101.9 spec/cli/history_spec.rb
travis-1.8.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1098.9 spec/cli/history_spec.rb
travis-1.8.11.travis.1081.9 spec/cli/history_spec.rb
travis-1.8.11.travis.1059.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1058.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1056.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1051.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1048.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1044.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1041.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1040.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1026.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1025.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1024.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1022.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1021.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1020.11 spec/cli/history_spec.rb
travis-1.8.11.travis.1012.9 spec/cli/history_spec.rb
travis-1.8.11.travis.1011.9 spec/cli/history_spec.rb