diff options
author | Ryan Davis <ryand-ruby@zenspider.com> | 2022-05-17 15:00:16 -0800 |
---|---|---|
committer | Ryan Davis <ryand-ruby@zenspider.com> | 2022-05-17 15:00:16 -0800 |
commit | 95eb9a21fe572fe9e9dc622d7098548b88dcf041 (patch) | |
tree | 0d55802970ccb771b0071f4e244f7313a5865584 /test | |
parent | 24c817b027e32e46844fe2daaeb4306979e3c3b7 (diff) | |
download | hoe-95eb9a21fe572fe9e9dc622d7098548b88dcf041.tar.gz |
+ Add bindir and homepage accessor methods. (dsisnero)
+ Use bindir to determine executables. (dsisnero)
+ Don't auto-intuit values if they're already set. (dsisnero)
[git-p4: depot-paths = "//src/hoe/dev/": change = 13384]
Diffstat (limited to 'test')
-rw-r--r-- | test/test_hoe.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/test_hoe.rb b/test/test_hoe.rb index c8d8d3a..1539499 100644 --- a/test/test_hoe.rb +++ b/test/test_hoe.rb @@ -297,6 +297,30 @@ class TestHoe < Minitest::Test assert_equal exp, h.urls end + def test_intuit_values_should_be_silent_if_summary_description_and_homepage_are_set + h = nil + _readme = <<~EOM + == this is readme + + == description + this is a bogus description + EOM + + assert_silent do + h = Hoe.spec "blah" do + developer "auther", "email" + license "MIT" + self.homepage = 'http://myhome' + self.description = 'this is real description' + self.summary = 'this is summary' + end + end + + assert_equal h.homepage , 'http://myhome' + assert_equal h.description , 'this is real description' + assert_equal h.summary , 'this is summary' + end + def test_metadata hash = [ "home :: https://github.com/seattlerb/hoe", |