Sha256: 922e44af2328264293e53615e36b1c22c2d1f7e38cf9128e3666e2581cdf946c
Contents?: true
Size: 837 Bytes
Versions: 3
Compression:
Stored size: 837 Bytes
Contents
# Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" require 'database_cleaner' require 'faker' require 'factory_girl' require 'nested_form/view_helper' DatabaseCleaner.strategy = :truncation DatabaseCleaner.clean FactoryGirl.find_definitions Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Load fixtures from the engine if ActiveSupport::TestCase.method_defined?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) end 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.0.3 | test/test_helper.rb |
iord-1.0.2 | test/test_helper.rb |
iord-1.0.1 | test/test_helper.rb |