Kelly Felkins's blog



Kelly FelkinsKelly Felkins
Standup 7/20/2010: The Daily Rubymine
edit Posted by Kelly Felkins on Tuesday July 20, 2010 at 10:35AM

Interesting Things

  • RubyMine 2.0.2, refactor => extract partial == FAIL. If you select multiple divs and perform extract partial, the selected region is removed, but only the first complete div is included in the new partial.

  • Rspec/Rubymine focused tests. Rubymine attempts to run focused tests using the --example 'text' option. Rspec apparently finds the example group, and runs the examples that are directly a part of that example group, but does not include descendent example groups -- *which can lead you to think examples are passing that were not actually run*. Apparently this is fixed in rspec 2.

Ask for Help

"Display of time is off by an hour, presumably due to Daylight Saving Time"

The team is displaying time stored as utc in the database, using strftime, and the time is off by an hour.

"Binding Click to Checkbox with Jquery"

A team was trying to check the value of a checkbox during the click event, but getting the opposite value. They worked through it but was hoping to find a better solution.

"Why is there a new default for include_root_in_json for rails 3?"

Just curious.

"Fakeweb, Capybara w/Selenium Webdriver == end of file?"

Getting "end of file" failure on CI. There were a few suggestions:

  • There is a fork of fakeweb that allows it to ignore localhost.
  • Consider using Webmock instead of fakeweb.

Kelly FelkinsKelly Felkins
Standup 3/26/2009: Testing Request Headers When Request Object Is Frozen
edit Posted by Kelly Felkins on Thursday March 26, 2009 at 04:59PM

Ask for Help

"How do you test request headers? The request object is frozen..."

The team is using rspec to test an OAuth implementation and needs better access to the request object.

  • Possibly modify the request environment prior to running the test -or-
  • Instantiate a new, non-frozen request object.