summaryrefslogtreecommitdiff
path: root/test/rake/test_rake_definitions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rake/test_rake_definitions.rb')
-rw-r--r--test/rake/test_rake_definitions.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/rake/test_rake_definitions.rb b/test/rake/test_rake_definitions.rb
index 4b2de9d1d28..ee474cb7c83 100644
--- a/test/rake/test_rake_definitions.rb
+++ b/test/rake/test_rake_definitions.rb
@@ -59,6 +59,11 @@ class TestRakeDefinitions < Rake::TestCase
assert_raises(RuntimeError) { Task[:x].invoke }
end
+ def test_falsey_dependencies
+ task :x => nil
+ assert_equal [], Task[:x].prerequisites
+ end
+
def test_implicit_file_dependencies
runs = []
create_existing_file