Add a spec for autoload with private_constant#1284
Conversation
autload with private_constantautoload with private_constant
This recently regressed in JRuby. The autload should be accessible and only fire on actual access.
464e646 to
d9071ea
Compare
|
This is a good start! I would like to get a review from @eregon as to whether some of this should be moved into fixtures rather than defined in line. I'm not a fan of having a tiny amount of code in the spec and a large amount of code in a fixture, but these are a little cumbersome. It also occurs to me, the JRuby bug was caused by the |
|
Looks good to me, I'll merge.
The other autoload examples do things the same way so it's fine and in general good to match the existing style. |
This recently regressed in JRuby. The autload should be accessible and only fire on actual access.
Ref jruby/jruby#8923
cc @headius