Skip to content

Commit

Permalink
Trigger :jbuilder initializer before starting the tests
Browse files Browse the repository at this point in the history
and let's see if the initializer is healthly working

refs #552
  • Loading branch information
amatsuda committed Jan 17, 2024
1 parent 6d1dc92 commit b115670
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ class Racer < Struct.new(:id, :name)
include ActiveModel::Conversion
end

# Instantiate an Application in order to trigger the initializers
Class.new(Rails::Application) do
config.secret_key_base = 'secret'
config.eager_load = false
end.initialize!

# Touch AV::Base in order to trigger :action_view on_load hook before running the tests
ActionView::Base.inspect

0 comments on commit b115670

Please sign in to comment.