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
  • Tools
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

Standup 03/28/2007

Joe Moore
Wednesday, March 28, 2007

Interesting Things

  • One pair had this reinforced: you should not generate random data in your test case to be the subject of your assertions. In their case they were generating random usernames to test an “allowed characters” filter, but their tests would intermittently succeed or fail because the test was not deterministic.
  • “A private declaration in a Helper doesn’t do jack crap!” Truer words were never spoken: private and protected declarations are not enforced in Rails View Helpers due to how that code is injected into View instances.
  • A developer suggested that we attempt to do “RESTful CSS.” An explanation and debate is due soon.
  • We are officially changing Wiki technologies from Twiki to Trac.
  • Rails Gotcha: You can use Named routes to generate a URL for a link with my_named_route_url, but watch out: that URL is fully qualified! If you want a relative “URL”, use my_named_route_path. Example:
<code>
# config/routes.rb

login "/login", :controller => "user_management", :action => "login"
</code>

And in a any RHTML template:

<code>
login_url    # generates http://example.com/login

login_path   # generates /login
</code>
  • People need to take more time to… blog! We have a laundry list of topics but no free time.

Total Stand-up Meeting Time: 17:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

One comment

  1. Corey and Vijay says:

    quote: “A private declaration in a Helper doesn’t do jack crap!”

    One interesting side note to this… a call to a private helper method called from a test will in fact throw an error.

    For example…

    NoMethodError: private method xxx called for #<#<Class:0x4f4b920>:0x4f4b86c>
    

    December 12, 2007 at 11:50 pm

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
  • Tools
  • 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 >