summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-05-13 16:45:33 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-05-13 16:45:33 -0500
commita52076c06ad77f8dd1b2df7c0763e45ff7369ff0 (patch)
treef193d1a04cea9e80352fd86575d2484f05684b06
parent581ba1b50021520d7ac860517f28eeb8bb4d49dd (diff)
downloadbundler-seg-ensure-man.tar.gz
Avoid re-building manpages each spec runseg-ensure-man
-rw-r--r--spec/support/manpages.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/manpages.rb b/spec/support/manpages.rb
index e3031ca4a4..f6a4a4ab51 100644
--- a/spec/support/manpages.rb
+++ b/spec/support/manpages.rb
@@ -4,7 +4,7 @@ module Spec
def self.setup
man_path = Spec::Path.root.join("man")
return if man_path.children(false).select {|file| file.extname == ".ronn" }.all? do |man|
- man_path.join(man).sub_ext(".txt").file?
+ Dir[man_path.join("#{man.to_s[0..-6]}*.txt").to_s].any?
end
system(Spec::Path.root.join("bin", "rake").to_s, "man:build") || raise("Failed building man pages")