Skip to content

Commit b115670

Browse files
committed
Trigger :jbuilder initializer before starting the tests
and let's see if the initializer is healthly working refs rails#552
1 parent 6d1dc92 commit b115670

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test_helper.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ class Racer < Struct.new(:id, :name)
3535
include ActiveModel::Conversion
3636
end
3737

38+
# Instantiate an Application in order to trigger the initializers
39+
Class.new(Rails::Application) do
40+
config.secret_key_base = 'secret'
41+
config.eager_load = false
42+
end.initialize!
43+
44+
# Touch AV::Base in order to trigger :action_view on_load hook before running the tests
45+
ActionView::Base.inspect

0 commit comments

Comments
 (0)