spec/spec_helper.rb in ankh-0.1.3 vs spec/spec_helper.rb in ankh-0.2.0

- old
+ new

@@ -1,21 +1,17 @@ $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) + +ENV["RAILS_ENV"] ||= 'test' + +require File.expand_path("../dummy/config/environment.rb", __FILE__) + require 'ankh' -require 'spec' -require 'spec/autorun' +require 'rspec' require 'mocha' -require 'support/active_record_spec_helper' -Spec::Runner.configure do |config| - include ActiveRecordSpecHelper - - config.before(:all) do - create_tables - end - - config.after(:all) do - drop_tables - end - +ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../') + +RSpec.configure do |config| config.mock_with :mocha end +