Permalink
Browse files

Added test for MultiTask + arguments

  • Loading branch information...
1 parent d677dac commit 4f0e44b0bcc6e8917f1854c87ce15b6d09dd2b3c @michaeljbishop michaeljbishop committed Aug 31, 2012
Showing with 10 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +8 −0 test/test_rake_multi_task.rb
View
@@ -9,3 +9,5 @@
/coverage
/html
/pkg
+
+.DS_Store
@@ -47,5 +47,13 @@ def test_all_multitasks_wait_on_slow_prerequisites
assert @runs.index("B0") < @runs.index("B1")
assert @runs.index("B1") < @runs.index("B2")
end
+
+ def test_multitasks_with_parameters
+ task :a, [:arg] do |t,args| add_run(args[:arg]) end
+ multitask :b, [:arg] => [:a] do |t,args| add_run(args[:arg]+'mt') end
+ Task[:b].invoke "b"
+ assert @runs[0] == "b"
+ assert @runs[1] == "bmt"
+ end
end

0 comments on commit 4f0e44b

Please sign in to comment.