mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Try and rename the app in the OptParser banner.
This commit is contained in:
parent
50e27d8906
commit
e0ad948a20
2 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,7 @@ module Capistrano
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super
|
super
|
||||||
|
@name = "cap"
|
||||||
@rakefiles = %w{capfile Capfile capfile.rb Capfile.rb} << capfile
|
@rakefiles = %w{capfile Capfile capfile.rb Capfile.rb} << capfile
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,14 @@ describe Capistrano::Application do
|
||||||
|
|
||||||
it "provides a --format option which enables the choice of output formatting"
|
it "provides a --format option which enables the choice of output formatting"
|
||||||
|
|
||||||
|
it "identifies itself as cap and not rake" do
|
||||||
|
pending "Waiting for: https://github.com/jimweirich/rake/pull/204"
|
||||||
|
out, _ = capture_io do
|
||||||
|
flags '--help', '-h'
|
||||||
|
end
|
||||||
|
out.should match(/\bcap [ -f capfile ]\b/)
|
||||||
|
end
|
||||||
|
|
||||||
it "overrides the rake method, but still prints the rake version" do
|
it "overrides the rake method, but still prints the rake version" do
|
||||||
out, _ = capture_io do
|
out, _ = capture_io do
|
||||||
flags '--version', '-V'
|
flags '--version', '-V'
|
||||||
|
|
Loading…
Add table
Reference in a new issue