Skip to content

Commit b65d01f

Browse files
committed
Skip @rubyopt logic for feature spec on CRuby
* It does not work in the CRuby repo, where RUBYOPT="-r/.../ruby/x86_64-linux-fake.rb -"
1 parent 9a51e0a commit b65d01f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command_line/feature_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Since some specs disable reading RUBYOPT, we instead pass its contents as :options for those specs
66
rubyopt = [ENV["RUBYOPT"]]
77
rubyopt << ENV["#{RUBY_ENGINE.upcase}OPT"] unless RUBY_ENGINE == 'ruby'
8-
@rubyopt = rubyopt.compact.join(" ")
8+
@rubyopt = RUBY_ENGINE == "ruby" ? "" : rubyopt.compact.join(" ")
99
end
1010

1111
it "can be used with gems" do

0 commit comments

Comments
 (0)