From 4f7a6aafa57bf57ce4b0b5e323548f0a6385d527 Mon Sep 17 00:00:00 2001 From: drbrain Date: Fri, 21 Dec 2012 02:34:37 +0000 Subject: * lib/rake/*: Updated to rake 0.9.6 * doc/rake/*: ditto * test/rake/*: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rake/test_rake_task_with_arguments.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/rake/test_rake_task_with_arguments.rb') diff --git a/test/rake/test_rake_task_with_arguments.rb b/test/rake/test_rake_task_with_arguments.rb index c0fc1b7633..cf4c157256 100644 --- a/test/rake/test_rake_task_with_arguments.rb +++ b/test/rake/test_rake_task_with_arguments.rb @@ -45,7 +45,7 @@ class TestRakeTaskWithArguments < Rake::TestCase def test_illegal_keys_in_task_name_hash ignore_deprecations do assert_raises RuntimeError do - t = task(:t, :x, :y => 1, :needs => [:pre]) + task(:t, :x, :y => 1, :needs => [:pre]) end end end @@ -136,14 +136,14 @@ class TestRakeTaskWithArguments < Rake::TestCase def test_named_args_are_passed_to_prereqs value = nil - pre = task(:pre, :rev) { |t, args| value = args.rev } + task(:pre, :rev) { |t, args| value = args.rev } t = task(:t, [:name, :rev] => [:pre]) t.invoke("bill", "1.2") assert_equal "1.2", value end def test_args_not_passed_if_no_prereq_names_on_task - pre = task(:pre) { |t, args| + task(:pre) { |t, args| assert_equal({}, args.to_hash) assert_equal "bill", args.name } @@ -152,7 +152,7 @@ class TestRakeTaskWithArguments < Rake::TestCase end def test_args_not_passed_if_no_prereq_names_on_multitask - pre = task(:pre) { |t, args| + task(:pre) { |t, args| assert_equal({}, args.to_hash) assert_equal "bill", args.name } @@ -161,7 +161,7 @@ class TestRakeTaskWithArguments < Rake::TestCase end def test_args_not_passed_if_no_arg_names - pre = task(:pre, :rev) { |t, args| + task(:pre, :rev) { |t, args| assert_equal({}, args.to_hash) } t = task(:t => [:pre]) -- cgit v1.2.3