spec/cli/endpoint_spec.rb in travis-1.5.1 vs spec/cli/endpoint_spec.rb in travis-1.5.2

- old
+ new

@@ -14,9 +14,15 @@ 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 -i" do run_cli('endpoint', '-i').should be_success stdout.should be == "API endpoint: https://api.travis-ci.org/\n" end end