mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
40bae2f67c
commit
d1d4490a57
18 changed files with 181 additions and 41 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue