summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2019-09-28 01:25:08 -0800
committerRyan Davis <ryand@zenspider.com>2019-09-28 01:25:08 -0800
commitd43cedcf42695f27110d50ad7e4e6b0a90833848 (patch)
tree6ac371ea2a47346050f5e740cb3426dc28475efc /test
parente06d0c4a8b318283425c2c67adcbe66841b24586 (diff)
downloadhoe-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.rb5
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