Sha256: 20a0f297f988ccfe119e3e51238392105bec3df7f6e3c06ee45b7518fb69b2c8

Contents?: true

Size: 613 Bytes

Versions: 4

Compression:

Stored size: 613 Bytes

Contents

require 'restpack_service/support/spec_helper'
require 'restpack_user_service'

config = YAML.load_file('./config/database.yml')
ActiveRecord::Base.establish_connection(ENV['DATABASE_URL'] || config['test'])

migrations_path = File.dirname(__FILE__) + "/../db/migrate"
migrator = ActiveRecord::Migrator.new(:up, migrations_path)
migrator.migrate

FactoryGirl.find_definitions

DatabaseCleaner.strategy = :transaction

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods

  config.before(:each) do
    DatabaseCleaner.start
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
restpack_user_service-0.0.5 spec/spec_helper.rb
restpack_user_service-0.0.4 spec/spec_helper.rb
restpack_user_service-0.0.3 spec/spec_helper.rb
restpack_user_service-0.0.2 spec/spec_helper.rb