Given /^I am in the "([^\"]*)" project folder$/ do |project| project_folder = File.expand_path(File.join(@fixtures_path, "projects", project)) in_tmp_folder do FileUtils.cp_r(project_folder, project) setup_active_project_folder(project) end end Given /^I am have a local recipe "([^\"]*)" at "\/tmp\/ey-recipes\/([^"]*)"$/ do |name, repeat_name| name.should == repeat_name fixture_recipe = File.join(@fixtures_path, "recipes", name) FileUtils.rm_rf(@tmp_recipes_path) FileUtils.mkdir_p(@tmp_recipes_path) FileUtils.cp_r(fixture_recipe, @tmp_recipes_path) end Given /^I am have a local sm extension "([^"]*)" at "\/tmp\/ey-recipes\/([^"]*)"$/ do |name, repeat_name| name.should == repeat_name fixture_recipe = File.join(@fixtures_path, "sm_exts", name) FileUtils.rm_rf(@tmp_recipes_path) FileUtils.mkdir_p(@tmp_recipes_path) FileUtils.cp_r(fixture_recipe, @tmp_recipes_path) FileUtils.chdir(File.join(@tmp_recipes_path, name)) do `git init` `git add .` `git commit -m 'Ready for testing'` end end Given /^project is a git repository$/ do in_project_folder do `git init` `git add .` `git commit -m 'Ready for testing'` end end