Sha256: 1bcda4daf40e9b9e961acf6ca7483384ad3f57345b26e8b1f57dd1a36909f58f

Contents?: true

Size: 1.07 KB

Versions: 109

Compression:

Stored size: 1.07 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/)
  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\/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\/jobs\/4125096/)
  end

  example 'travis open -pg' do
    run_cli('open', '-pg').should be_success
    stdout.should match(/https:\/\/github.com\/[\w\W]*\/travis/)
  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

109 entries across 109 versions & 1 rubygems

Version Path
travis-1.5.6.travis.336.4 spec/cli/open_spec.rb
travis-1.5.6.travis.333.4 spec/cli/open_spec.rb
travis-1.5.6.travis.332.4 spec/cli/open_spec.rb
travis-1.5.6.travis.330.4 spec/cli/open_spec.rb
travis-1.5.6.travis.329.4 spec/cli/open_spec.rb
travis-1.5.6.travis.326.4 spec/cli/open_spec.rb
travis-1.5.6.travis.324.4 spec/cli/open_spec.rb
travis-1.5.6.travis.323.4 spec/cli/open_spec.rb
travis-1.5.6.travis.320.4 spec/cli/open_spec.rb
travis-1.5.6.travis.319.4 spec/cli/open_spec.rb
travis-1.5.6.travis.317.4 spec/cli/open_spec.rb
travis-1.5.6.travis.315.4 spec/cli/open_spec.rb
travis-1.5.6.travis.314.4 spec/cli/open_spec.rb
travis-1.5.6.travis.312.4 spec/cli/open_spec.rb
travis-1.5.6.travis.307.4 spec/cli/open_spec.rb
travis-1.5.6.travis.306.4 spec/cli/open_spec.rb
travis-1.5.6.travis.304.4 spec/cli/open_spec.rb
travis-1.5.6.travis.303.4 spec/cli/open_spec.rb
travis-1.5.6.travis.301.4 spec/cli/open_spec.rb
travis-1.5.6.travis.299.4 spec/cli/open_spec.rb