diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-28 02:45:29 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-28 02:45:29 +0000 |
commit | 2619f216fef06c9fca948ca729a0e23b62996f09 (patch) | |
tree | 01c462490ba269df417fad115570ace6a765a25f /test/rake/test_rake_task_with_arguments.rb | |
parent | 84ece951630c61eddab8be47b80fc1a7f774175f (diff) |
* lib/rake: Update rake to fix some bugs and hide deprecated features
from RDoc.
* lib/rake/version.rb: Bump version to 0.9.2.1 to distinguish it from
the released version.
* NEWS: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32265 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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rake/test_rake_task_with_arguments.rb b/test/rake/test_rake_task_with_arguments.rb index bbbc82f99f..fe1bcf5a49 100644 --- a/test/rake/test_rake_task_with_arguments.rb +++ b/test/rake/test_rake_task_with_arguments.rb @@ -158,5 +158,13 @@ class TestRakeTaskWithArguments < Rake::TestCase t = task(:t => [:pre]) t.invoke("bill", "1.2") end + + def test_values_at + t = task(:pre, [:a, :b, :c]) { |t, args| + a, b, c = args.values_at(:a, :b, :c) + assert_equal %w[1 2 3], [a, b, c] + } + t.invoke(*%w[1 2 3]) + end end |