features: some under-the-hood enhancements

This commit is contained in:
Parker Moore 2016-01-18 12:48:12 -08:00
parent e5d8bdee8f
commit 1d369aada3
2 changed files with 3 additions and 4 deletions

View File

@ -105,10 +105,8 @@ end
#
Given %r{^I have a configuration file with:$} do |table|
File.open("_config.yml", "w") do |f|
table.hashes.each do |row|
f.write("#{row["key"]}: #{row["value"]}\n")
end
table.hashes.each do |row|
step %(I have a configuration file with "#{row["key"]}" set to "#{row["value"]}")
end
end

View File

@ -2,6 +2,7 @@ require "fileutils"
require "jekyll/utils"
require "open3"
require "time"
require "safe_yaml/load"
class Paths
SOURCE_DIR = Pathname.new(File.expand_path("../..", __dir__))