Skip to content

Commit

Permalink
fixed test of --usage flags
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/rake/trunk@608 5af023f1-ac1a-0410-98d6-829a145c37ef
  • Loading branch information
jimweirich committed Sep 1, 2007
1 parent 553a8b8 commit a51bc3e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions test/test_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,11 @@ def test_dry_run
end

def test_help
flags('--help', '-H') do |opts|
flags('--help', '-H', '-h') do |opts|
assert_match(/\Arake/, @out)
assert_match(/--help/, @out)
assert_match(/\boptions\b/, @out)
assert_match(/\btargets\b/, @out)
assert_equal :exit, @exit
assert_equal :exit, @exit
end
end
Expand All @@ -287,15 +289,6 @@ def test_describe
end
end

def test_usage
flags('--usage', '-h') do |opts|
assert_match(/\Arake/, @out)
assert_match(/\boptions\b/, @out)
assert_match(/\btargets\b/, @out)
assert_equal :exit, @exit
end
end

def test_libdir
flags(['--libdir', 'xx'], ['-I', 'xx'], ['-Ixx']) do |opts|
$:.include?('xx')
Expand Down

0 comments on commit a51bc3e

Please sign in to comment.