Skip to content

quick tip: bunder, rails 2.3.8, and rspec

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; to solve the issue I changed line 15 from

ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", _ FILE _)


ENV["BUNDLE_GEMFILE"] = File.expand_path(File.join(Rails.root,"Gemfile"), _ FILE _)

Hope that helps…

One Comment

  1. Tim wrote:

    Thanks for this – worked a treat. I’m on 2.3.8 also.

    Wednesday, March 30, 2011 at 8:34 pm | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *