1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
drbrain 2012-12-21 02:34:37 +00:00
parent 7764dd9357
commit 4f7a6aafa5
20 changed files with 917 additions and 91 deletions

View file

@ -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])