diff options
author | Ryan Davis <ryand@zenspider.com> | 2019-09-28 01:25:08 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2019-09-28 01:25:08 -0800 |
commit | d43cedcf42695f27110d50ad7e4e6b0a90833848 (patch) | |
tree | 6ac371ea2a47346050f5e740cb3426dc28475efc /test | |
parent | e06d0c4a8b318283425c2c67adcbe66841b24586 (diff) | |
download | hoe-d43cedcf42695f27110d50ad7e4e6b0a90833848.tar.gz |
Make a test more robust to version differences by splitting and sorting dependencies.
[git-p4: depot-paths = "//src/hoe/dev/": change = 12320]
Diffstat (limited to 'test')
-rw-r--r-- | test/test_hoe.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_hoe.rb b/test/test_hoe.rb index 262833e..dd77e8f 100644 --- a/test/test_hoe.rb +++ b/test/test_hoe.rb @@ -272,11 +272,12 @@ class TestHoe < Minitest::Test expected = [ ["hoe", :development, "~> #{Hoe::VERSION.sub(/\.\d+$/, "")}"], - ["rdoc", :development, ">= 4.0, < 7"], + ["rdoc", :development, "< 7", ">= 4.0"], ] assert_equal expected, deps.map { |dep| - [dep.name, dep.type, dep.requirement.to_s] + dep_reqs = dep.requirement.to_s.split(/, /).sort + [dep.name, dep.type, *dep_reqs] } end |