Skip to content

Commit 537daac

Browse files
committed
Added broken test for #182
1 parent b14f682 commit 537daac

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/test_rake_rules.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,17 @@ def test_regex_rule_with_args
343343
Task[OBJFILE].invoke("arg")
344344
end
345345

346+
# for https://github.com/ruby/rake/pull/182
347+
def test_single_dependent_with_nil_args
348+
create_file(SRCFILE)
349+
rule nil => ".cpp" do |t| p t.name end
350+
rule(/\.o$/ => ".c") do |t|
351+
@runs << t.name
352+
end
353+
Task[OBJFILE].invoke
354+
assert_equal [OBJFILE], @runs
355+
end
356+
346357
def test_string_rule_with_args_and_lambda_prereq
347358
delete_file(OBJFILE)
348359
create_file(SRCFILE)

0 commit comments

Comments
 (0)