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][SF] 5/24 – Don’t drink and drivers

Roberto Ostinelli
Thursday, May 24, 2012

Helps

Capybara + Selenium

Using Capybara + Selenium for request tests results in a Rack application timed out during boot which ultimately throws a SystemErrorduring tests.

The single test works fine, the timeout only happens when running a full rake spec.

The same errors appears under these different setups:

  • with Database Cleaner (:truncation strategy)
  • with/without Database Cleaner (:transaction strategy, using shared connection with transactional fixtures [1])

Have tried increasing Capybara.server_boot_timeout = 240 to no avail.

=> Main suggestion is: try with another driver.

[1] http://blog.plataformatec.com.br/2011/12/three-tips-to-improve-the-performance-of-your-test-suite/

IE8 + HTML + JSON

On IE8, refreshing an URL served by a controller which handles both html and json content results in displaying the json instead of the html content.

The json response is only being accessed by an XHR request, which explicitly calls for the URL with the .json extension.

Tried explicitly setting the Content-Type header of json responses (for some reason, not set by rails 3.1), no changes in browser’s behaviour.

=> Try inverting the order of the response_to defined in the controller, setting the html as first element.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

[Standup][SF] 5/23 – At the beach

Roberto Ostinelli
Wednesday, May 23, 2012

Helps

  • Has anyone seen any failing scenarios when using “contentEditable” with resize set to true, to allow for automatic resizing of textareas?

=> No.

Interestings

  • Range behaviours:
>> range = 1..3
=> 1..3
>> range.first
=> 1
>> range.last
=> 3
>> range.to_a
=> [1, 2, 3]
>> exrange = 1...3
=> 1....3
>> exrange.first
=> 1
>> exrange.last
=> 3
>> exrange.to_a
=> [1, 2]
  • [related] When using Date ranges to define a BETWEEN clause in MySQL, beware that the upper date limit is excluded from the results (1 day less). Unsure about the case when the Date range is exclusive (2 days less?).

  • Lean Startup Machine is coming up!

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

[Standup][SF] 5/21 – No Money! ($0)

Roberto Ostinelli
Monday, May 21, 2012

Helps

chirp chirp

Interestings

  • $0: In Chrome, this command dumps the most recently selected node into the console.

  • RSpec2: If you are used to defining your specs with subject{} and its{} blocks, beware of unexpected results, since the subject changes to whatever is returned by the its blocks.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Standup 11/8/2011: Rails 3 fixtures and licenses

Roberto Ostinelli
Tuesday, November 8, 2011

Helps

  • Upgrading to Rails 3 from 2.3.14 results in rails not being able to reference named fixtures, so you actually have to force them. For ex:
work_sample_asset_version:
  asset_id: <%= Fixtures.identify(:work_sample_asset) %> # works
  asset: work_sample_asset # doesn't work
  • Ruby license has switched from dual license Ruby License / GPL3 for v1.9.2 to Ruby License / BSD for v1.9.3.

Interesting

  • Riak v1.0 has been released, release party this evening

  • On Lion, Ctrl-F7 allows you to toggle keyboard access between “all controls” and “text boxes and list only”

  • SF Public Department is running an AIDS risk level assessment, feel free to join up if interested.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Roberto Ostinelli

Roberto Ostinelli
San Francisco

Subscribe to Roberto's Feed

Author Topics

agile (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 >