From fa905731763021346d4fb97dfbeb0ca40abd068f Mon Sep 17 00:00:00 2001 From: Jan Berkel Date: Sun, 14 Mar 2010 17:27:38 +0100 Subject: [PATCH] Ruby 1.9 compat fix in features. Fixes #141. --- features/step_definitions/jekyll_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index 71b71d38..27239bd5 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -45,7 +45,7 @@ end 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"