Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

Standup 08/02/2010: weird errors and convenient Jasmine fixture generation

Abhijit Hiremagalur
Monday, August 2, 2010

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.

  • When using JB’s technique to save fixtures
    for Jasmine in controller specs
    , considering naming all your examples that create fixtures identically. This way you can easily run just these examples to regenerate your fixtures with something like spec -e 'should generate a fixture for jasmine'
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Add New Comment Cancel reply

Your email address will not be published.

Abhijit Hiremagalur

Abhijit Hiremagalur
San Francisco

Recent Posts

  • Hash#fetch with confidence
  • Standup 08/05/2010: ‘bundle check’ and Websockets
  • Standup 08/04/2010: Accounting on Rails anybody?
Subscribe to Abhijit's Feed

Author Topics

ruby (3)
bundler (1)
websockets (1)
cucumber (1)
javascript (1)
json (1)
rails (2)
rails3 (1)
rubymine (2)
testing (2)
ey (1)
facebook (1)
imagemagick (1)
jasmine (2)
thor (1)
agile (3)
ajax (1)
css (1)
design (1)
iconv (1)
jquery (1)
utf-8 (2)
character encoding (1)
unicode (1)
acts_as_fu (1)
selenium (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >