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

Let us know how we can contact you.

Thank you!

We'll respond shortly.

Whitney Schaefer

Posts By

PIVOTAL LABS
[Standup][SF] 08/24/12

Helps

  • Using asset pipeline outside rails

Correlating debugging errors to source files.

Currently using Sprockets template name in-lined. Any better solutions?

Suggestions:

  • Look at head repo of asset pipline
  • Middleman gem

PIVOTAL LABS
[Standup][SF] 08/23/12: Resqued!

Helps

  • Alternatives to css :contains() selector

We use this selector in many tests, for example the ones that require to click on the link of a specific table row:

within "tr:contains('My Line')" do
    click_link "Edit"
end

This selector however is deprecated, and didn't make it to css3.

Thus, is it safe to use it in tests?

Suggestions

  • Iterate over all the links
  • Put an id on the link
  • Probably not going away (and contains back in if it breaks)
  • Data attribute
  • Xpath - last resort

PIVOTAL LABS
Standup SF 8/22/12 – Database Backup Fun

Helps

  • ActiveRecord::UnknownPrimaryKey error when restoring backup on Heroku

Suggestions:

  • Check foreign key constraints
  • Use pgbackup

  • Taps Server Error: PGError: ERROR: time zone displacement out of range:

Taps Server Error: PGError: ERROR: time zone displacement out of range: "1970-01-01 12:00:00.000000+5857411200"

Suggestions:

  • Use pgbackup

PIVOTAL LABS
[Standup][SF] 08/20/12

Interestings

  • Capybara/Selenium wait_for_ajax is your friend

A good generic wait until the last AJAX call has returned before moving on to your next assertion. Solved a lot of unstable-in-ci Capybara specs for us

http://agilesoftwaretesting.com/selenium-wait-for-ajax-the-right-way/