Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Return a boolean for Support::Ruby.rbx?/truffleruby? #486

Merged
merged 1 commit into from
Jan 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/rspec/support/ruby_features.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ def jruby_version
end

def rbx?
defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
!!defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
end

def mri?
!defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby'
end

def truffleruby?
defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby'
!!defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby'
end
end

Expand Down