Sha256: 4d03bfc60af3cdb534bae4b0f974ead7daa16a4a78a9a5ab1f5b808f0d7efe36

Contents?: true

Size: 1.09 KB

Versions: 281

Compression:

Stored size: 1.09 KB

Contents

require 'spec_helper'

describe Travis::CLI::Open do
  example 'travis open -p' do
    run_cli('open', '-p').should be_success
    stdout.should match(/https:\/\/travis-ci.org\/[\w\W]*\/travis\.rb/)
  end

  example 'travis open 6180 -p' do
    run_cli('open', '6180', '-p').should be_success
    stdout.should match(/https:\/\/travis-ci.org\/[\w\W]*\/travis\.rb\/builds\/4125095/)
  end

  example 'travis open 6180.1 -p' do
    run_cli('open', '6180.1', '-p').should be_success
    stdout.should match(/https:\/\/travis-ci.org\/[\w\W]*\/travis\.rb\/jobs\/4125096/)
  end

  example 'travis open -pg' do
    run_cli('open', '-pg').should be_success
    stdout.should match(/https:\/\/github.com\/[\w\W]*\/travis\.rb/)
  end

  example 'travis open 6180 -pg' do
    run_cli('open', '6180', '-pg').should be_success
    stdout.should be == "https://github.com/rails/rails/compare/6581d798e830...a0265b98f16c\n"
  end

  example 'travis open 6180.1 -pg' do
    run_cli('open', '6180.1', '-pg').should be_success
    stdout.should be == "https://github.com/rails/rails/compare/6581d798e830...a0265b98f16c\n"
  end
end

Version data entries

281 entries across 281 versions & 3 rubygems

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