Skip to content

Commit

Permalink
Fix duplicate factories in test
Browse files Browse the repository at this point in the history
  • Loading branch information
sman591 committed Jan 2, 2018
1 parent 8d53753 commit 535229f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def at_exit
ActiveSupport::TestCase.fixtures :all
end

# Load factories from the engine
FactoryBot.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
FactoryBot.find_definitions
# Factories are already imported through a Rails Engine initializer - don't re-import them here
# FactoryBot.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
# FactoryBot.find_definitions

# To add Capybara feature tests add `gem "minitest-rails-capybara"`
# to the test group in the Gemfile and uncomment the following:
Expand Down

0 comments on commit 535229f

Please sign in to comment.