Sha256: e66da40f0a6b6fe80ea80de2f566af3b966e368c144350ab42b0476092397967

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
engineyard-recipes-0.4.0 features/step_definitions/fixture_project_steps.rb
engineyard-recipes-0.3.2 features/step_definitions/fixture_project_steps.rb
engineyard-recipes-0.3.2.pre features/step_definitions/fixture_project_steps.rb
engineyard-recipes-0.3.0 features/step_definitions/fixture_project_steps.rb
engineyard-recipes-0.2.0 features/step_definitions/fixture_project_steps.rb
engineyard-recipes-0.2.0.pre3 features/step_definitions/fixture_project_steps.rb
engineyard-recipes-0.2.0.pre2 features/step_definitions/fixture_project_steps.rb