From 0db5d6c12c07595d11004390ee286c740af3ad94 Mon Sep 17 00:00:00 2001 From: Daniel Cunha Date: Sat, 24 Nov 2012 10:42:45 -0300 Subject: [PATCH] Loading solr and removing useless database_cleaner requirement --- features/support/env.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/features/support/env.rb b/features/support/env.rb index b6838f6..4d22ca6 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -5,6 +5,9 @@ # files. ENV["RAILS_ENV"] ||= "cucumber" +abort unless system 'rake -s solr:start' +at_exit { system 'rake -s solr:stop' } + require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support @@ -48,13 +51,6 @@ ActionController::Base.allow_rescue = false Cucumber::Rails::World.use_transactional_fixtures = true # How to clean your database when transactions are turned off. See # http://github.com/bmabey/database_cleaner for more info. -if defined?(ActiveRecord::Base) - begin - require 'database_cleaner' - DatabaseCleaner.strategy = :truncation - rescue LoadError => ignore_if_database_cleaner_not_present - end -end Before do Fixtures.reset_cache -- libgit2 0.21.2