diff options
author | Ryan Davis <ryand-ruby@zenspider.com> | 2022-05-17 13:35:27 -0800 |
---|---|---|
committer | Ryan Davis <ryand-ruby@zenspider.com> | 2022-05-17 13:35:27 -0800 |
commit | fc4c316d9f47e7984416084750695bba83652c77 (patch) | |
tree | 948f083c488f1b428140d636818f8cf9ce250c54 | |
parent | 5c4bc95fe95d4a1e4f737f23c33a2e3ffc3b070b (diff) | |
download | hoe-fc4c316d9f47e7984416084750695bba83652c77.tar.gz |
Fixed test that fails if I'm not using isolate for rake.
[git-p4: depot-paths = "//src/hoe/dev/": change = 13381]
-rw-r--r-- | test/test_hoe_publish.rb | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/test/test_hoe_publish.rb b/test/test_hoe_publish.rb index 2229ccf..d8b5140 100644 --- a/test/test_hoe_publish.rb +++ b/test/test_hoe_publish.rb @@ -19,9 +19,16 @@ class TestHoePublish < Minitest::Test end def test_make_rdoc_cmd + rdoc = Gem.bin_wrapper "rdoc" + + unless File.exist? rdoc then + extra = "-S" + rdoc = "rdoc" + end + expected = %W[ #{Gem.ruby} - #{Gem.bin_wrapper "rdoc"} + #{rdoc} --title blah-1.0\ Documentation -o doc --main README.rdoc @@ -29,7 +36,11 @@ class TestHoePublish < Minitest::Test History.rdoc Manifest.txt README.rdoc ] - skip if linux? - assert_equal expected, @hoe.make_rdoc_cmd + expected[1, 0] = extra if extra + + # skip if linux? + capture_io do + assert_equal expected, @hoe.make_rdoc_cmd + end end end |