Skip to content

Instantly share code, notes, and snippets.

View ryanjm's full-sized avatar

Ryan Mathews ryanjm

View GitHub Profile
@defunkt
defunkt / clients.md
Created April 18, 2010 14:09
A list of Gist clients.

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

Then /^the selected date for "([^"]*)" should be "([^"]*)"$/ do |field, date|
field = field.tr('[', '_')
field = field.tr(']', '_')
year_field = field + '1i'
month_field = field + '2i'
day_field = field + '3i'
date = Date.parse(date)
field_with_id(year_field).element.search(".//option[@selected = 'selected']").inner_html.should =~ /#{date.year}/