Sha256: b0b84e81949c62aee60e0052ec96e167df44c6b516aa22c34a46482d6d40d994

Contents?: true

Size: 1.04 KB

Versions: 266

Compression:

Stored size: 1.04 KB

Contents

require 'spec_helper'

describe Travis::CLI::Endpoint do
  example "travis endpoint" do
    run_cli('endpoint').should be_success
    stdout.should be == "https://api.travis-ci.org/\n"
  end

  example "travis endpoint --pro" do
    run_cli('endpoint', '--pro').should be_success
    stdout.should be == "https://api.travis-ci.com/\n"
  end

  example "travis endpoint -e http://localhost:3000/" do
    run_cli('endpoint', '-e', 'http://localhost:3000/').should be_success
    stdout.should be == "http://localhost:3000/\n"
  end

  example "TRAVIS_ENDPOINT=http://localhost:3000/ travis endpoint" do
    ENV['TRAVIS_ENDPOINT'] = "http://localhost:3000/"
    run_cli('endpoint').should be_success
    stdout.should be == "http://localhost:3000/\n"
  end

  example "travis endpoint --github" do
    run_cli('endpoint', '--github').should be_success
    stdout.should be == "https://api.github.com\n"
  end

  example "travis endpoint -i" do
    run_cli('endpoint', '-i').should be_success
    stdout.should be == "API endpoint: https://api.travis-ci.org/\n"
  end
end

Version data entries

266 entries across 266 versions & 2 rubygems

Version Path
travis-1.7.2.travis.635.5 spec/cli/endpoint_spec.rb
travis-1.7.2.travis.634.5 spec/cli/endpoint_spec.rb
travis-1.7.2.travis.633.5 spec/cli/endpoint_spec.rb
travis-1.7.2.travis.632.5 spec/cli/endpoint_spec.rb
travis-1.7.2.travis.630.5 spec/cli/endpoint_spec.rb
travis-1.7.2.travis.627.5 spec/cli/endpoint_spec.rb
travis-1.7.2.travis.626.5 spec/cli/endpoint_spec.rb
travis-1.7.2.travis.625.5 spec/cli/endpoint_spec.rb
travis-1.7.2.travis.623.5 spec/cli/endpoint_spec.rb
travis-1.7.2.travis.621.5 spec/cli/endpoint_spec.rb
travis-1.7.1 spec/cli/endpoint_spec.rb
travis-1.7.1.travis.613.5 spec/cli/endpoint_spec.rb
travis-1.7.0 spec/cli/endpoint_spec.rb
travis-1.6.18.travis.612.5 spec/cli/endpoint_spec.rb
travis-1.6.18.travis.611.5 spec/cli/endpoint_spec.rb
travis-1.6.18.travis.610.5 spec/cli/endpoint_spec.rb
travis-1.6.18.travis.609.5 spec/cli/endpoint_spec.rb
travis-1.6.18.travis.608.5 spec/cli/endpoint_spec.rb
travis-1.6.18.travis.607.5 spec/cli/endpoint_spec.rb
travis-1.6.18.travis.606.5 spec/cli/endpoint_spec.rb