From 44cfa0540face9970aae704096aa75d8d1e080ae Mon Sep 17 00:00:00 2001 From: zachgersh Date: Tue, 4 Jun 2013 00:53:47 -0700 Subject: [PATCH] Switch it to file.exists? and File.directory? so 1.8.7 doesn't complain. --- features/step_definitions/jekyll_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index 602b25db..cede6bdb 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -14,7 +14,7 @@ Given /^I have a blank site in "(.*)"$/ do |path| end Given /^I do not have a "(.*)" directory$/ do |path| - Dir.exists?("#{TEST_DIR}/#{path}") + File.directory?("#{TEST_DIR}/#{path}") end # Like "I have a foo file" but gives a yaml front matter so jekyll actually processes it @@ -141,7 +141,7 @@ Then /^the (.*) directory should exist$/ do |dir| end Then /^the "(.*)" file should exist in the (.*) path$/ do |file, path| - assert File.file?("#{TEST_DIR}/#{path}/#{file}") + assert File.exists?("#{TEST_DIR}/#{path}/#{file}") end Then /^the (.*) directory should exist in the (.*) path$/ do |dir, path|