Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

Standup 03/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:
# config/routes.rb

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

And in a any RHTML template:

login_url    # generates

login_path   # generates /login
  • 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

  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>
Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *