Sha256: a12239ab7c9430daa98c11275dd1292090a383bb70503a8d99d6c3fd78897510

Contents?: true

Size: 1.19 KB

Versions: 119

Compression:

Stored size: 1.19 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 --com" do
    run_cli('endpoint', '--com').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

119 entries across 119 versions & 2 rubygems

Version Path
travis-1.9.1 spec/cli/endpoint_spec.rb
travis-1.9.1.travis.1223.9 spec/cli/endpoint_spec.rb
travis-1.9.1.travis.1220.9 spec/cli/endpoint_spec.rb
travis-1.9.1.travis.1219.9 spec/cli/endpoint_spec.rb
travis-1.9.1.travis.1216.9 spec/cli/endpoint_spec.rb
travis-1.9.1.travis.1208.9 spec/cli/endpoint_spec.rb
travis-1.9.1.travis.1207.9 spec/cli/endpoint_spec.rb
travis-1.9.1.travis.1206.9 spec/cli/endpoint_spec.rb
travis-1.9.1.travis.1205.9 spec/cli/endpoint_spec.rb
travis-1.9.0 spec/cli/endpoint_spec.rb
travis-1.9.1.travis.1201.9 spec/cli/endpoint_spec.rb
travis-1.8.14.travis.1200.9 spec/cli/endpoint_spec.rb
travis-1.8.14.travis.1199.9 spec/cli/endpoint_spec.rb
travis-1.8.14.travis.1198.9 spec/cli/endpoint_spec.rb
travis-1.8.14.travis.1197.9 spec/cli/endpoint_spec.rb
travis-1.8.14.travis.1195.9 spec/cli/endpoint_spec.rb
travis-1.8.14.travis.1192.9 spec/cli/endpoint_spec.rb
travis-1.8.14.travis.1186.9 spec/cli/endpoint_spec.rb
travis-1.8.14.travis.1184.9 spec/cli/endpoint_spec.rb
travis-1.8.14.travis.1183.9 spec/cli/endpoint_spec.rb