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:
parent
f1edb15ac8
commit
48ea550009
1 changed files with 3 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue