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 03/15/2007

Joe Moore
Thursday, March 15, 2007

Interesting Things

  • Note that the Rails testing framework might be the only place that performs a require for classes and libraries that are needed by your application. End result: your tests pass, but your application doesn’t work. For all the testing frameworks and methodologies, nothing beats the ol’ “click through” for peace of mind.

  • Flexmock: When using Flexmock, you are must specify that the mock is called at least once, or your assertions might erroneously pass. Example:

<code>
    # Will pass even if :monkey is never called!
    my_flex_mock.should_receive(:monkey!)

    # Will fail if :monkey is not called once
    my_flex_mock.should_receive(:monkey!).once
</code>
  • Rspec syntax: old vs. new — the new style for should assertions is a “multi word” style rather than “under_score_word”. Example:
<code>
    # Old style: underscored word
    monkey.should_be_nil

    # New style: multi word, multi method
    monkey.should be_nil
</code>
  • has_many gotcha: Many already know this, but for a has_many relationship, the append method (<<) performs a save if the subject exists in the database already. In a test, you might need to perform a monkey_wrangler.reload to pick up all of the changes after a monkey_wrangler.monkeys << baboon
  • We are developing a Rails + AJAX wizard framework. Stay tuned!

Ask for Help

  • Any concerns or issues regarding performing many AJAX requests over HTTPS?
    • The main concern shared by the group was performance. Any other issues that people know of?

ctrl+z

  • It turns out that the has_many :through order dependency issue we described was our fault.

Total Stand-up Meeting Time: 23:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Add New Comment Cancel reply

Your email address will not be published.

Joe Moore

Joe Moore
New York

Recent Posts

  • How We Use tmux for Remote Pair Programming
  • Integrating Remote Developers: Intuitive, Flexible Video Conferencing
  • Pair Programming Matrix
Subscribe to Joe's Feed

Author Topics

agile (117)
pair programming (6)
remote (4)
remote pair programming (3)
tmux (1)
android (10)
mobile (10)
robolectric (4)
java (4)
c2dm (2)
testing (8)
apple (1)
ipad (1)
pivotal tracker (6)
sf.tug (2)
desert (2)
ruby on rails (13)
javascript (2)
capistrano (1)
palmpre (1)
active record (3)
activerecord (6)
mysql (1)
rubymine (1)
fun (4)
acts_as_fu (1)
rspec (2)
xp (1)
flash (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 >