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

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
Standup 12/01/2009

Help!

  • Heroku logs – how do you get more than 20 lines? Is there an option to get the entire log? Apparently there used to be an option to get the whole thing. Looks like we’re not the only ones looking for this.
  • Webrat – is it really as incomplete as it appears? The answer is yes. We’ve had to create a bunch of the api ourselves to facilitate using it. If you know you’re just going to use the Selenium portion of it without the Rails integration option then you might just call the Selenium API directly (which Webrat does make available to you) from your Selenium tests.

Interesting Things

  • Rails XML parameter rudeness – sometimes when only a single model is posted, it does not generate the second array, and instead gives you a hash (i.re. not wrapped in []). This is apparently a well-known bug. Workaround is pretty straightforward:

    widgets = params[:widgets][:widget]
    if widgets.is_a?(Hash)
      widgets = [widgets]
    end
    
  • Movember is over but you can revel in the ‘stashes all year long at Pivotal Movember.

Comments
  1. Sandro Turriate says:

    I use webrat everyday and have never thought of it as being “incomplete”. Please be specific about what you feel is missing. Even better, help out the community and publish the extensions you’ve had to write.

Post a Comment

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

* Copy This Password *

* Type Or Paste Password Here *