summaryrefslogtreecommitdiff
path: root/test/rake/test_rake_task_with_arguments.rb
diff options
context:
space:
mode:
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 ce81a4c1a8e..c0fc1b76330 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
-