-
Notifications
You must be signed in to change notification settings - Fork 22
Add Zeitwerk loader support #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Zeitwerk loader support #62
Conversation
2473158
to
03110b9
Compare
e19c1f4
to
298925e
Compare
298925e
to
ae70164
Compare
ae70164
to
5399608
Compare
Any idea why the link test now fails? |
Isn't this because something wasn't updated for the tests? Like #70 |
No |
I think the way it gets loaded doesn't work. The rake task doesn't load the whole Rails environment but loads one file directly. In #58 I've taken a more native approach, but I still have to finish that. |
5399608
to
352cec9
Compare
test/link_checker.rb
Outdated
@@ -47,7 +47,7 @@ def navigate_path(path, hash = @toc) | |||
|
|||
inner_hash = hash[first] | |||
|
|||
return inner_hash if rest.empty? | |||
return inner_hash if rest.nil? or rest.empty? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before Zeitwerk, Rails was loaded when this test was running and Rails in its endless wisdom adds empty?
to NilClass
. With Zeitweirk, no Rails is present here, and so no NilClass.empty?
. Let's catch that via nil?
first.
352cec9
to
3f0595f
Compare
No description provided.