Skip to content
Browse files

Ruby 1.9 compat fix in features. Fixes #141.

  • Loading branch information...
1 parent a8efc3a commit fa905731763021346d4fb97dfbeb0ca40abd068f @jberkel jberkel committed with mojombo Mar 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 features/step_definitions/jekyll_steps.rb
View
2 features/step_definitions/jekyll_steps.rb
@@ -45,7 +45,7 @@
Given /^I have the following posts?(?: (.*) "(.*)")?:$/ do |direction, folder, table|
table.hashes.each do |post|
- date = Date.parse(post['date']).strftime('%Y-%m-%d')
+ date = Date.strptime(post['date'], '%m/%d/%Y').strftime('%Y-%m-%d')
title = post['title'].downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-')
if direction && direction == "in"

0 comments on commit fa90573

Please sign in to comment.
Something went wrong with that request. Please try again.