diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-21 02:34:37 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-21 02:34:37 +0000 |
commit | 4f7a6aafa57bf57ce4b0b5e323548f0a6385d527 (patch) | |
tree | 497051dace17ac69043fa6edbb2585f6da03fe24 /test/rake/test_rake_task_with_arguments.rb | |
parent | 7764dd935737aed303b3d61928ad36f4b67ae8ed (diff) | |
download | ruby-4f7a6aafa57bf57ce4b0b5e323548f0a6385d527.tar.gz |
* 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
Diffstat (limited to 'test/rake/test_rake_task_with_arguments.rb')
-rw-r--r-- | test/rake/test_rake_task_with_arguments.rb | 10 |
1 files changed, 5 insertions, 5 deletions
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]) |