Skip to content

Commit 4fafd10

Browse files
committed
Don't get remote-doc test files through local cache.
1 parent 9f0e9d1 commit 4fafd10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/suite_helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def self.open_file(filename_or_url, options = {}, &block)
2626
when filename_or_url.to_s =~ /^file:/
2727
path = filename_or_url[5..-1]
2828
Kernel.open(path.to_s, options, &block)
29-
when (filename_or_url.to_s =~ %r{^#{REMOTE_PATH}} && Dir.exist?(LOCAL_PATH))
29+
when Dir.exist?(LOCAL_PATH) &&
30+
!filename_or_url.to_s.include?('remote-doc') &&
31+
filename_or_url.to_s =~ %r{^#{REMOTE_PATH}}
3032
#puts "attempt to open #{filename_or_url} locally"
3133
localpath = filename_or_url.to_s.sub(REMOTE_PATH, LOCAL_PATH)
3234
response = begin

0 commit comments

Comments
 (0)