I set up an app on 2.3.8 with bundler, and when trying to run the rspec tests got
.../config/Gemfile not found (Bundler::GemfileNotFound)
which is odd.
I’d grabbed the code for config/intializers/preinitializer.rb from gembundler.com; to solve the issue I changed line 15 from
ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", _ FILE _)
to
ENV["BUNDLE_GEMFILE"] = File.expand_path(File.join(Rails.root,"Gemfile"), _ FILE _)
Hope that helps…
One Comment
Thanks for this – worked a treat. I’m on 2.3.8 also.
Post a Comment