spec/cli/help_spec.rb in travis-1.5.2 vs spec/cli/help_spec.rb in travis-1.5.3
- old
+ new
@@ -1,33 +1,33 @@
require 'spec_helper'
describe Travis::CLI::Help do
example "travis help" do
run_cli('help').should be_success
- stdout.should start_with("Usage: #$0 COMMAND")
+ stdout.should include("Usage: travis COMMAND")
end
example "travis --help" do
run_cli('--help').should be_success
- stdout.should start_with("Usage: #$0 COMMAND")
+ stdout.should include("Usage: travis COMMAND")
end
example "travis -h" do
run_cli('-h').should be_success
- stdout.should start_with("Usage: #$0 COMMAND")
+ stdout.should include("Usage: travis COMMAND")
end
example "travis -?" do
run_cli('-?').should be_success
- stdout.should start_with("Usage: #$0 COMMAND")
+ stdout.should include("Usage: travis COMMAND")
end
example "travis help endpoint" do
run_cli('help', 'endpoint').should be_success
- stdout.should start_with("Usage: #$0 endpoint [options]")
+ stdout.should include("Usage: travis endpoint [options]")
end
example "travis endpoint --help" do
run_cli('endpoint', '--help').should be_success
- stdout.should start_with("Usage: #$0 endpoint [options]")
+ stdout.should include("Usage: travis endpoint [options]")
end
end