I just had production crash where after deploy, my app simply stopped working.
tracking down the logs led me to this error:
‘App 3531 output: Error: The application encountered the following error: expected file /home/deploy/Skydive-jumpstart/releases/20210322114743/app/dashboards/tutorials_dashboard.rb to define constant TutorialsDashboard, but didn’t (Zeitwerk::NameError)’
which was easy to fix.
The problem is - all my tests passed before I deployed.
I get (and appreciate) Rails being ‘kinder’ during development - but it shouldn’t be hiding bugs that make the entire app fall over in my testing
How do I write a test along the lines of
describe "Zeitwerk" do
it "manages to load classes without falling over"
end
and why isn’t something like this in the default testing setup?