spec/dummy/config/boot.rb in active_admin-state_machine-0.1.1 vs spec/dummy/config/boot.rb in active_admin-state_machine-1.0.0.pre1
- old
+ new
@@ -1,10 +1,3 @@
-require 'rubygems'
-gemfile = File.expand_path('../../../../Gemfile', __FILE__)
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
-if File.exist?(gemfile)
- ENV['BUNDLE_GEMFILE'] = gemfile
- require 'bundler'
- Bundler.setup
-end
-
-$:.unshift File.expand_path('../../../../lib', __FILE__)
\ No newline at end of file
+require "bundler/setup" # Set up gems listed in the Gemfile.