spec/example_app/config/boot.rb in chili-3.1.0 vs spec/example_app/config/boot.rb in chili-3.1.1
- old
+ new
@@ -1,12 +1,7 @@
-require 'rubygems'
-gemfile = File.expand_path('../../../../../Gemfile', __FILE__)
+# Set up gems listed in the Gemfile.
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../../Gemfile', __FILE__)
-if File.exist?(gemfile)
- ENV['BUNDLE_GEMFILE'] = gemfile
- require 'bundler'
- Bundler.setup
-end
-
+require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
$:.unshift File.expand_path('../../../../../lib', __FILE__)
$:.unshift File.expand_path('../../lib/chili/social_feature/lib', __FILE__)
$:.unshift File.expand_path('../../lib/chili/invites_feature/lib', __FILE__)