test/test_tasks.rb in jimweirich-rake-0.8.1.5 vs test/test_tasks.rb in jimweirich-rake-0.8.1.6
- old
+ new
@@ -18,11 +18,10 @@
def test_create
arg = nil
t = task(:name) { |task| arg = task; 1234 }
assert_equal "name", t.name
assert_equal [], t.prerequisites
- assert t.prerequisites.is_a?(FileList)
assert t.needed?
t.execute(0)
assert_equal t, arg
assert_nil t.source
assert_equal [], t.sources
@@ -362,10 +361,10 @@
t.invoke("bill", "1.2")
end
def test_args_not_passed_if_no_arg_names
pre = task(:pre, :rev) { |t, args|
- assert_equal({ :rev => nil }, args.to_hash)
+ assert_equal({}, args.to_hash)
}
t = task(:t, :needs => [:pre])
t.invoke("bill", "1.2")
end
end