summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorSeba Gamboa <[email protected]>2015-09-09 13:33:42 -0300
committerSeba Gamboa <[email protected]>2015-09-09 13:33:42 -0300
commit803f11e001d9ab6aed37b3c8601db827d605b46a (patch)
tree053277681deefbac7f69fcd55514cc985783b2f0 /tasks
parent1cbbb7e11c02d381a6b76aeebae8db0f54ae9baf (diff)
downloadmruby-803f11e001d9ab6aed37b3c8601db827d605b46a.tar.gz
mruby-803f11e001d9ab6aed37b3c8601db827d605b46a.zip
Add test dependencies
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mrbgem_spec.rake4
1 files changed, 4 insertions, 0 deletions
diff --git a/tasks/mrbgem_spec.rake b/tasks/mrbgem_spec.rake
index 74aa5b817..f6fe1fee4 100644
--- a/tasks/mrbgem_spec.rake
+++ b/tasks/mrbgem_spec.rake
@@ -103,6 +103,10 @@ module MRuby
@dependencies << {:gem => name, :requirements => requirements, :default => default_gem}
end
+ def add_test_dependency(*args)
+ add_dependency(*args) if build.test_enabled?
+ end
+
def add_conflict(name, *req)
@conflicts << {:gem => name, :requirements => req.empty? ? nil : req}
end