spec/unit/spec_helper.rb in blueprints-0.9.0 vs spec/unit/spec_helper.rb in blueprints-1.0.0

- old
+ new

@@ -1,17 +1,16 @@ Root = Pathname.new(__FILE__).dirname.join('..', '..') $: << Root.join('lib').to_s require 'rspec' +require 'active_record' +require File.dirname(__FILE__) + '/../support/active_record/initializer' require 'blueprints' require File.dirname(__FILE__) + '/fixtures' RSpec.configure do |config| config.mock_with :mocha - - config.before do - Blueprints::Namespace.root.eval_context = Blueprints::EvalContext.new - end + config.include Fixtures config.after do Blueprints::Namespace.root.instance_variable_get(:@children).clear Blueprints::Namespace.root.executed_blueprints.clear end