aboutsummaryrefslogtreecommitdiffstats
path: root/spec/syntax_suggest
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-12-09 15:13:23 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-12-09 16:36:22 +0900
commit93ac1503be10c43978fe7ee1fec95ca2098fbd26 (patch)
tree7a452120b7c6a957670c8fb6bec2aebd088895a5 /spec/syntax_suggest
parent0677bbe3ff139a4f369c128bdab3526450c5ee6f (diff)
downloadruby-93ac1503be10c43978fe7ee1fec95ca2098fbd26.tar.gz
Added condition for ruby/ruby repository
Diffstat (limited to 'spec/syntax_suggest')
-rw-r--r--spec/syntax_suggest/spec_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/syntax_suggest/spec_helper.rb b/spec/syntax_suggest/spec_helper.rb
index e78dee76bc..67d401888b 100644
--- a/spec/syntax_suggest/spec_helper.rb
+++ b/spec/syntax_suggest/spec_helper.rb
@@ -32,7 +32,11 @@ def spec_dir
end
def lib_dir
- root_dir.join("lib")
+ if ruby_core?
+ root_dir.join("../lib")
+ else
+ root_dir.join("lib")
+ end
end
def root_dir