data/ore/templates/test_unit/test/helper.rb.erb in ore-0.10.0 vs data/ore/templates/test_unit/test/helper.rb.erb in ore-0.11.0
- old
+ new
@@ -1,21 +1,11 @@
require 'rubygems'
<%- if bundler? -%>
begin
- require 'bundler'
-rescue LoadError => e
- warn e.message
- warn "Run `gem install bundler` to install Bundler."
- exit e.status_code
-end
-
-begin
- Bundler.setup(:default, :development, :test)
-rescue Bundler::BundlerError => e
- warn e.message
- warn "Run `bundle install` to install missing gems."
- exit e.status_code
+ require 'bundler/setup'
+rescue LoadError => error
+ abort error.message
end
<%- end -%>
require 'test/unit'