Abhijit Hiremagalur's blog



Abhijit HiremagalurAbhijit Hiremagalur
Standup 08/02/2010: weird errors and convenient Jasmine fixture generation
edit Posted by Abhijit Hiremagalur on Monday August 02, 2010 at 11:42AM

Interesting Things

  • One team noticed an odd error when they mistyped a Thor constant name.

ArgumentError: Thor is not missing constant Sandbox!.

This appears to due to how #const_missing in activesupport handles nested constant names. Specifically when trying to reference one nested constant from within another nested constant that isn't its parent:

Curiously the spec that exposed the previous issue also returned this odd summary:

0 examples, 1 failure, -1 passed

This is also similar to another standup blog post from almost a year ago.