1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00

Fix running some file tests on isolation

These custom inputs should be only loaded in discovery tests, and not
for the entire suite. Some tests were showing errors by using such
wrappers when running in isolation.
This commit is contained in:
Carlos Antonio da Silva 2012-02-16 22:53:17 -02:00
parent f1edb15ac8
commit 48ea550009

View file

@ -25,7 +25,9 @@ require 'simple_form'
require "rails/generators/test_case"
require 'generators/simple_form/install_generator'
Dir["#{File.dirname(__FILE__)}/support/*.rb"].each { |f| require f }
Dir["#{File.dirname(__FILE__)}/support/*.rb"].each do |file|
require file unless file.end_with?('discovery_inputs.rb')
end
I18n.default_locale = :en
require 'country_select'