Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 48ea550009cc6eb45241b4955e980442b3d20656 1 parent f1edb15
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/test_helper.rb
View
4 test/test_helper.rb
@@ -25,7 +25,9 @@ def self.env
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'
Please sign in to comment.
Something went wrong with that request. Please try again.