Sha256: ddb09d09b409f81bf0c2f266151daaa2634d022ec0cdb498ae3e0ef850fb8830

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

if ENV['START_SIMPLECOV'].to_i == 1
  require 'simplecov'
  SimpleCov.start do
    add_filter 'features'
  end
end

require 'acts_as_account'
require 'yaml'
db_config = YAML.load_file(__dir__ + '/../db/database.yml')
ActiveRecord::Base.establish_connection(db_config)

require 'database_cleaner'
require 'database_cleaner/cucumber'
DatabaseCleaner.strategy = :transaction

Dir["#{__dir__}/../step_definitions/*.rb"].sort.each { |file| require file }

require_relative 'user'
require_relative 'abstract_user'
require_relative 'inheriting_user'
require_relative 'cheque'

After do
  ActsAsAccount::Journal.clear_current
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_account-3.2.3 features/support/env.rb