Kelly Felkins's blog



Kelly FelkinsKelly Felkins
Standup 9/11/2009: to_param now required in functional tests
edit Posted by Kelly Felkins on Friday September 11, 2009 at 10:08AM

Ask for Help

"Do you have to use to_param in functional tests?"

In the past you could simply provide an object in a param list in functional tests and the to_param for the object would be called to get the proper value for the parameter. This is now broken, forcing you to use object.to_param every time.

Perhaps not helpful for existing projects but I recommend you use cucumber, webrat, or even selenium rather than Rails functional tests. Rails functional tests require that you specify parameters and specify them correctly. If you get them wrong your functional tests might continue to pass for the wrong reason. Here's another "bad params in functional tests" post.

Interesting Things

Kelly FelkinsKelly Felkins
Standup 9/10/2009: "All Alias, All The Time"
edit Posted by Kelly Felkins on Thursday September 10, 2009 at 10:21AM

Interesting Things

  • One team reported that Capistrano can't deal with host aliases in .ssh/config. Others use host aliases with capistrano without trouble. The problem could be related to multiple host aliases. All this led to the statement:

    If you are working with EY, you should go all alias, all the time.

  • Problems with JsUnit and Firefox 3.5. From Adam:

    If you're planning to use JsUnit, or you already use JsUnit and you plan to upgrade your Firefox to version 3.5, you may run into this problem. Apparently the security settings in Firefox were updated in 3.5 to restrict file access in a way that stymies JsUnit. If you don't fix this JsUnit will fail to open test files, and will simply hang on tests runs, with no error output. To fix it:

    • type 'about:config' in the Firefox URL bar
    • Filter by 'security.fileuri.strict_origin_policy'
    • Set this to false

Kelly FelkinsKelly Felkins
Standup 9/9/2009: Unicorn, Thin, and Mongrel
edit Posted by Kelly Felkins on Wednesday September 09, 2009 at 09:39AM

Ask for Help

"Has anyone used Unicorn"

No one present is using Unicorn. Some wondered how it differs from Thin.

This raised the question:

"Is there a road map for mongrel and rails? Mongrel uses CGI and Rails 2.3 has removed CGI."

In the Ruby on Rails 2.3 Release Notes, there is the statement

...but if you use CGI, don’t worry; Rails now supports CGI through a proxy interface...