Sha256: d4425dc2f1ffd8791cf7986ccd2dc4e2bd6e9ccc7afddfc5601e094732413871
Contents?: true
Size: 599 Bytes
Versions: 8
Compression:
Stored size: 599 Bytes
Contents
# This calls the main test_helper in Foreman-core require 'test_helper' require 'database_cleaner' require 'dynflow/testing' # Add plugin to FactoryGirl's paths FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories') FactoryGirl.reload # Foreman's setup doesn't handle cleaning up for Minitest::Spec DatabaseCleaner.strategy = :transaction class Minitest::Spec class << self alias_method :context, :describe end before :each do DatabaseCleaner.start Setting::RemoteExecution.load_defaults end after :each do DatabaseCleaner.clean end end
Version data entries
8 entries across 8 versions & 1 rubygems