Sha256: 1435d612c62553b7b948487f031e8f49e060b454bd8a4bce72ff59a9dbcfba48

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 Bytes

Contents

require 'connection_manager'
require 'rspec'
require 'bundler/setup'
require 'active_record'
require 'factory_girl'
require 'helpers/database_spec_helper'

TestDB.connect('mysql2')
TestMigrations.up
FactoryGirl.find_definitions

RSpec.configure do |config|
  config.mock_with :mocha 
  # Loads database.yml and establishes primary connection
  # Create tables when tests are completed
  config.before(:all) {
    require 'helpers/models_spec_helper'    
  }
  # Drops tables when tests are completed
  config.after(:each){
     TestDB.clean
  }
end


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
connection_manager-0.2.6 spec/spec_helper.rb
connection_manager-0.2.5 spec/spec_helper.rb
connection_manager-0.2.4 spec/spec_helper.rb
connection_manager-0.2.3 spec/spec_helper.rb
connection_manager-0.2.2 spec/spec_helper.rb
connection_manager-0.2.1 spec/spec_helper.rb