Skip to content

Commit

Permalink
Removed unused block argument
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed May 6, 2016
1 parent b7a7bfe commit 704537d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_rake_application_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_describe_with_pattern

def test_execute
$xyzzy = 0
flags('--execute=$xyzzy=1', '-e $xyzzy=1') do |opts|
flags('--execute=$xyzzy=1', '-e $xyzzy=1') do
assert_equal 1, $xyzzy
assert_equal :exit, @exit
$xyzzy = 0
Expand All @@ -81,7 +81,7 @@ def test_execute

def test_execute_and_continue
$xyzzy = 0
flags('--execute-continue=$xyzzy=1', '-E $xyzzy=1') do |opts|
flags('--execute-continue=$xyzzy=1', '-E $xyzzy=1') do
assert_equal 1, $xyzzy
refute_equal :exit, @exit
$xyzzy = 0
Expand All @@ -91,7 +91,7 @@ def test_execute_and_continue
def test_execute_and_print
$xyzzy = 0
out, = capture_io do
flags('--execute-print=$xyzzy="pugh"', '-p $xyzzy="pugh"') do |opts|
flags('--execute-print=$xyzzy="pugh"', '-p $xyzzy="pugh"') do
assert_equal 'pugh', $xyzzy
assert_equal :exit, @exit
$xyzzy = 0
Expand Down Expand Up @@ -134,7 +134,7 @@ def test_jobs
end

def test_libdir
flags(['--libdir', 'xx'], ['-I', 'xx'], ['-Ixx']) do |opts|
flags(['--libdir', 'xx'], ['-I', 'xx'], ['-Ixx']) do
$:.include?('xx')
end
ensure
Expand All @@ -148,7 +148,7 @@ def test_multitask
end

def test_rakefile
flags(['--rakefile', 'RF'], ['--rakefile=RF'], ['-f', 'RF'], ['-fRF']) do |opts|
flags(['--rakefile', 'RF'], ['--rakefile=RF'], ['-f', 'RF'], ['-fRF']) do
assert_equal ['RF'], @app.instance_eval { @rakefiles }
end
end
Expand Down

0 comments on commit 704537d

Please sign in to comment.