mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Specs must keep working on older versions and other implementations
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f13b0fd8f3
commit
96e6eb380d
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ describe "The -v command line option" do
|
|||
describe "when used alone" do
|
||||
it "prints version and ends" do
|
||||
ruby_description =
|
||||
if RubyVM::MJIT.enabled?
|
||||
if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
|
||||
# fake.rb always drops +JIT from RUBY_DESCRIPTION. This resurrects that.
|
||||
RUBY_DESCRIPTION.sub(/ \[[^\]]+\]$/, ' +JIT\0')
|
||||
else
|
||||
|
|
|
@ -23,7 +23,7 @@ describe "Processing RUBYOPT" do
|
|||
end
|
||||
|
||||
ruby_description =
|
||||
if RubyVM::MJIT.enabled?
|
||||
if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
|
||||
# fake.rb always drops +JIT from RUBY_DESCRIPTION. This resurrects that.
|
||||
RUBY_DESCRIPTION.sub(/ \[[^\]]+\]$/, ' +JIT\0')
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue