aboutsummaryrefslogtreecommitdiffstats
path: root/test/rake/test_rake_task_with_arguments.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 19:16:46 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 19:16:46 +0000
commitd1d4490a57413ff5cb7e8bd0274bb34c7da68d29 (patch)
tree70596346a7f5f13d846cda7353fb8474baf4ad7e /test/rake/test_rake_task_with_arguments.rb
parent40bae2f67c1160e1e59018c1003d014c60d1ee47 (diff)
downloadruby-d1d4490a57413ff5cb7e8bd0274bb34c7da68d29.tar.gz
* lib/rake/*: Updated to rake 0.9.5
* test/rake/*: ditto. * NEWS: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38003 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.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/rake/test_rake_task_with_arguments.rb b/test/rake/test_rake_task_with_arguments.rb
index ce81a4c1a8..c0fc1b7633 100644
--- a/test/rake/test_rake_task_with_arguments.rb
+++ b/test/rake/test_rake_task_with_arguments.rb
@@ -142,7 +142,7 @@ class TestRakeTaskWithArguments < Rake::TestCase
assert_equal "1.2", value
end
- def test_args_not_passed_if_no_prereq_names
+ def test_args_not_passed_if_no_prereq_names_on_task
pre = task(:pre) { |t, args|
assert_equal({}, args.to_hash)
assert_equal "bill", args.name
@@ -151,6 +151,15 @@ class TestRakeTaskWithArguments < Rake::TestCase
t.invoke("bill", "1.2")
end
+ def test_args_not_passed_if_no_prereq_names_on_multitask
+ pre = task(:pre) { |t, args|
+ assert_equal({}, args.to_hash)
+ assert_equal "bill", args.name
+ }
+ t = multitask(:t, [:name, :rev] => [:pre])
+ t.invoke("bill", "1.2")
+ end
+
def test_args_not_passed_if_no_arg_names
pre = task(:pre, :rev) { |t, args|
assert_equal({}, args.to_hash)
@@ -170,4 +179,3 @@ class TestRakeTaskWithArguments < Rake::TestCase
# HACK no assertions
end
end
-