From a52076c06ad77f8dd1b2df7c0763e45ff7369ff0 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Sat, 13 May 2017 16:45:33 -0500 Subject: Avoid re-building manpages each spec run --- spec/support/manpages.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.1