diff --git a/features/support/env.rb b/features/support/env.rb index a7588d98..6f24647b 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -14,6 +14,14 @@ def run_jekyll(opts = {}) system command end +def call_jekyll_new(opts = {}) + command = JEKYLL_PATH.clone + command << " new" + command << " --blank" if opts[:blank] + command << " >> /dev/null 2>&1" if opts[:debug].nil? + system command +end + def slug(title) title.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-') end