2016-10-24 22:53:25 +02:00
|
|
|
require "testing_env"
|
2016-09-26 19:55:50 +02:00
|
|
|
|
2016-09-27 00:03:40 +02:00
|
|
|
class IntegrationCommandTestDeps < IntegrationCommandTestCase
|
2016-09-26 19:55:50 +02:00
|
|
|
def test_deps
|
|
|
|
setup_test_formula "foo"
|
|
|
|
setup_test_formula "bar"
|
|
|
|
setup_test_formula "baz", <<-EOS.undent
|
|
|
|
url "https://example.com/baz-1.0"
|
|
|
|
depends_on "bar"
|
|
|
|
EOS
|
|
|
|
|
|
|
|
assert_equal "", cmd("deps", "foo")
|
|
|
|
assert_equal "foo", cmd("deps", "bar")
|
|
|
|
assert_equal "bar\nfoo", cmd("deps", "baz")
|
|
|
|
end
|
|
|
|
end
|