Skip to content

Instantly share code, notes, and snippets.

@mpvosseller
Created August 26, 2022 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpvosseller/84b0120c165549b50aec46bd2b43db6e to your computer and use it in GitHub Desktop.
Save mpvosseller/84b0120c165549b50aec46bd2b43db6e to your computer and use it in GitHub Desktop.
require "rails_helper"
# https://mvaragnat.medium.com/rails-6-and-rspec-how-to-test-zeitwerk-mode-81782b6d3388
describe "Zeitwerk" do
it "eager loads all files" do
# like running `bin/rails zeitwerk:check`
expect { Zeitwerk::Loader.eager_load_all }.not_to raise_error
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment