Sha256: 4291cfedbc8306670151799d275267d303f10aaa2457a9237a6a87e62a47f23c

Contents?: true

Size: 570 Bytes

Versions: 4

Compression:

Stored size: 570 Bytes

Contents

ENV["RAILS_ENV"] ||= 'test'
require 'simplecov'
require File.expand_path("../../config/environment", __FILE__)

require 'rspec/rails'
require 'rspec/autorun'
# require 'factory_girl_rails'

# Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }

RSpec.configure do |config|
  config.order = "random"
  
  config.before(:suite) do
    Organization.create_with_database('test', 'Developer Test Practice') unless Organization.find_by_code('test')
  end
  
  config.before(:each) do
    Organization.first.connect
  end
  
  config.after(:suite) do
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
multidb-4.0.1 testapp_mysql2/spec/spec_helper.rb
multidb-3.2.1 testapp_mysql2/spec/spec_helper.rb
multidb-4.0.0 testapp_mysql2/spec/spec_helper.rb
multidb-3.2.0 testapp_mysql2/spec/spec_helper.rb