You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rails do use Gem in rails/railties/lib/rails/ruby_version_check.rb
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.5.0")
and obviously since RubyGems are loaded by default by recent rubies, it
doesn't care to explicitly require it. That results in:
/home/runner/work/rspec-expectations/rspec-rails/bin/rspec
An error occurred while loading spec_helper.
Failure/Error: require 'rails/all'
NameError:
uninitialized constant Gem
# /home/runner/work/rspec-expectations/bundle/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/ruby_version_check.rb:3:in `<top (required)>'
# /home/runner/work/rspec-expectations/bundle/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails.rb:3:in `require'
0 commit comments