Skip to content

Commit

Permalink
Added broken test for #182
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jul 1, 2017
1 parent b14f682 commit 537daac
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/test_rake_rules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,17 @@ def test_regex_rule_with_args
Task[OBJFILE].invoke("arg")
end

# for https://github.com/ruby/rake/pull/182
def test_single_dependent_with_nil_args
create_file(SRCFILE)
rule nil => ".cpp" do |t| p t.name end
rule(/\.o$/ => ".c") do |t|
@runs << t.name
end
Task[OBJFILE].invoke
assert_equal [OBJFILE], @runs
end

def test_string_rule_with_args_and_lambda_prereq
delete_file(OBJFILE)
create_file(SRCFILE)
Expand Down

0 comments on commit 537daac

Please sign in to comment.