Skip to content

Commit db04191

Browse files
authored
Merge pull request #166 from ruby/backport-from-ruby
Added condition to path helper for ruby/ruby repository layout
2 parents daee74d + 0e919b6 commit db04191

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/spec_helper.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ def spec_dir
3232
end
3333

3434
def lib_dir
35-
root_dir.join("lib")
35+
if ruby_core?
36+
root_dir.join("../lib")
37+
else
38+
root_dir.join("lib")
39+
end
3640
end
3741

3842
def root_dir

0 commit comments

Comments
 (0)