economatic/features/env.rb
require 'economatic_core'
require 'database_cleaner'
require 'playhouse/theatre'
root_dir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
theatre = Playhouse::Theatre.new(root: root_dir, environment: 'test')
theatre.open
DatabaseCleaner.strategy = :truncation
DatabaseCleaner.clean_with(:truncation)
if ENV['TRAVIS']
require 'coveralls'
Coveralls.wear!
end
def play
@play ||= Economatic::EconomaticPlay.new
end