spec/boot.rb in reportable-1.0.3 vs spec/boot.rb in reportable-1.1.0

- old
+ new

@@ -1,15 +1,12 @@ plugin_root = File.join(File.dirname(__FILE__), '..') -gem 'rails' -require 'active_record' -require 'active_support' -require 'action_controller' -require 'action_view' - $:.unshift "#{plugin_root}/lib" -RAILS_ROOT = File.expand_path(File.dirname(__FILE__) + '/../') +Bundler.require +require 'initializer' + +RAILS_ROOT = File.expand_path(File.dirname(__FILE__) + '/../') unless defined?(RAILS_ROOT) Rails::Initializer.run(:set_load_path) Rails::Initializer.run(:set_autoload_paths) Rails::Initializer.run(:initialize_time_zone) do |config| config.time_zone = 'Pacific Time (US & Canada)' end