Skip to content

Instantly share code, notes, and snippets.

@pcreux
Created August 31, 2010 15:08
Show Gist options
  • Save pcreux/559168 to your computer and use it in GitHub Desktop.
Save pcreux/559168 to your computer and use it in GitHub Desktop.
Custom config/boot.rb to test a Rails 3 app with Integrity
require 'rubygems'
# Set up gems listed in the Gemfile.
GEMFILE_PATH = File.expand_path('../../Gemfile', __FILE__)
if File.exist?(GEMFILE_PATH)
# Force the rails 3 application to use its Gemfile
ENV['BUNDLE_GEMFILE'] = GEMFILE_PATH
require 'bundler'
Bundler.setup
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment