Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ruby 1.9 compat fix in features. Fixes #141.

  • Loading branch information...
commit fa905731763021346d4fb97dfbeb0ca40abd068f 1 parent a8efc3a
@jberkel jberkel authored mojombo committed
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"
Please sign in to comment.
Something went wrong with that request. Please try again.