Sha256: 2d03637f1e213523ae63b9c89976cd392e860a9321c8d8a5cd927ac61b8beee3

Contents?: true

Size: 753 Bytes

Versions: 3

Compression:

Stored size: 753 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

Before do
  ActsAsAccount.configure do |config|
    # Default values:
    # config.persist_attributes_on_account = true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
acts_as_account-3.4.1 features/support/env.rb
acts_as_account-3.4.0 features/support/env.rb
acts_as_account-3.3.0 features/support/env.rb