Skip to content

Commit

Permalink
Fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Bramjetten committed Oct 8, 2024
1 parent 55b1798 commit 218c08e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ class Minitest::Unit::TestCase
FactoryBot.find_definitions

# Load fixtures from the engine
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
ActiveSupport::TestCase.fixture_path = File.expand_path("fixtures", __dir__)
ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files"
ActiveSupport::TestCase.fixtures :all
# if ActiveSupport::TestCase.respond_to?(:fixture_path=)
# ActiveSupport::TestCase.fixture_path = File.expand_path("fixtures", __dir__)
# ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
# ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files"
# ActiveSupport::TestCase.fixtures :all
# end
class ActiveSupport::TestCase
self.fixture_path = File.expand_path('fixtures', __dir__)
self.file_fixture_path = fixture_path + '/files'

fixtures :all
end

module AuthenticationHelper
Expand Down

0 comments on commit 218c08e

Please sign in to comment.