Before do FileUtils.mkdir(TEST_DIR) Dir.chdir(TEST_DIR) end After do Dir.chdir(TEST_DIR) FileUtils.rm_rf(TEST_DIR) end Given /^I have an "(.*)" file(?: with (.*) "(.*)")? that contains "(.*)"$/ do |file, key, value, text| File.open(file, 'w') do |f| if key && value f.write <> /dev/null` end When /^I change "(.*)" to contain "(.*)"$/ do |file, text| pending end When /^I go to "(.*)"$/ do |address| pending end Then /^the (.*) directory should exist$/ do |dir| pending end Then /^I should see "(.*)"(?: in "(.*)")?$/ do |text, file| pending end Then /^the "(.*)" file should not exist$/ do |file| pending end