[Tests] Add zeitwerk compliance check

Because I'm stupid
This commit is contained in:
Earlopain 2023-05-01 17:30:13 +02:00
parent 065a3c8ac0
commit 8fe5cb986b
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
3 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class TakedownJobCopy < ApplicationJob
class TakedownJob < ApplicationJob
queue_as :high_prio
sidekiq_options lock: :until_executing, lock_args_method: :lock_args

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class TakedownJob < ApplicationJob
class TakedownJobCopy < ApplicationJob
queue_as :high_prio
sidekiq_options lock: :until_executing, lock_args_method: :lock_args

View File

@ -0,0 +1,7 @@
require "test_helper"
class ZeitwerkTest < ActiveSupport::TestCase
should "eager load all files without errors" do
assert_nothing_raised { Rails.application.eager_load! }
end
end