Sha256: 48dadf49f67935a21933d796738b3e45e92e4af9db87038c2645ec01e3dd4877

Contents?: true

Size: 784 Bytes

Versions: 1

Compression:

Stored size: 784 Bytes

Contents

require 'tapp'
require 'rails/rails_support'
require 'rspec'
require 'rspec/rails'

require 'factory_girl'
FactoryGirl.find_definitions

require File.expand_path(File.dirname(__FILE__) + '/../lib/active_export')

require 'database_cleaner'
DatabaseCleaner.clean_with :truncation
DatabaseCleaner.strategy = :transaction

RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = false
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.filter_run focus: true
  config.run_all_when_everything_filtered = true

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

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

def fixture_file(filename)
  File.expand_path(File.dirname(__FILE__)) + '/fixtures/' + filename
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_export-0.1.0 spec/spec_helper.rb