Ruby 1.9 compat fix in features. Fixes #141.
This commit is contained in:
parent
a8efc3a0a2
commit
fa90573176
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue