spec/spec_helper.rb in earth-0.11.10 vs spec/spec_helper.rb in earth-0.11.11

- old
+ new

@@ -6,22 +6,25 @@ require 'data_miner' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'earth' +require 'support/integration' +include Integration + case ENV['EARTH_DB_ADAPTER'] when 'mysql' adapter = 'mysql' database = 'test_earth' username = 'root' password = 'password' # system %{mysql -u #{username} -p#{password} -e "DROP DATABASE #{database}"} # system %{mysql -u #{username} -p#{password} -e "CREATE DATABASE #{database}"} else - adapter = 'sqlite3' - database = ':memory:' + adapter = 'postgresql' + database = 'test_earth' username = nil password = nil end config = { @@ -39,7 +42,9 @@ ActiveRecord::Base.logger = logger DataMiner.logger = logger RSpec.configure do |c| - c.filter_run_excluding :slow => true + unless ENV['ALL'] == 'true' + c.filter_run_excluding :slow => true + end end