Sha256: baa39942784fa63c0e2b8a35cd6a8e8e3501ef931c51979106c0a26695e529d6
Contents?: true
Size: 802 Bytes
Versions: 3
Compression:
Stored size: 802 Bytes
Contents
require 'bundler/setup' require 'simplecov' require 'pry' SimpleCov.configure do add_filter '/test/' end SimpleCov.start if ENV['COVERAGE'] require 'minitest/autorun' ENV['RAILS_ENV'] = 'test' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rails/test_help' require 'factory_girl' require 'nested_form/view_helper' # FactoryGirl can't find definitions :/ FactoryGirl.definition_file_paths = [File.expand_path('../factories', __FILE__)] FactoryGirl.find_definitions Mongo::Logger.logger = Rails.logger Rails.backtrace_cleaner.remove_silencers! ActiveSupport::TestCase.test_order = :random class ActiveSupport::TestCase include FactoryGirl::Syntax::Methods end # fixes NestedForm not avilable in test class ActionView::Base include NestedForm::ViewHelper end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
iord-1.2.2 | test/test_helper.rb |
iord-1.2.1 | test/test_helper.rb |
iord-1.2.0 | test/test_helper.rb |