Sha256: 850af343354a15aa3f2c36fef2dea91c850e9170be26ebb6cac1163a80e7e16b

Contents?: true

Size: 985 Bytes

Versions: 1

Compression:

Stored size: 985 Bytes

Contents

When /^I fill in "([^\"]*)" with a valid git directory$/ do |input|
  @project_dir = create_sample_repo
  When "I fill in \"#{input}\" with \"#{@project_dir}\""
end

Then /^I should see a link to "(.*)"$/ do |link|
  response.body.should match(/href=["']#{link}["']/)
end

Given /^there is no projects$/ do
  in_dir Ginst::Ginst.working_dir do
    run("rm projects.yml")
  end
  Ginst::Project.load_projects
end

Given /^There is a valid project called "([^\"]*)"$/ do |prj_name|
  Given 'there is no projects'
  Given "I go to the homepage"
  Given 'I follow "New Project"'
  Given 'I fill in "project[dir]" with a valid git directory'
  Given "I fill in \"Name\" with \"#{prj_name}\""
  Given 'I press "Create"'
  Given "I should see a link to \"/projects/#{prj_name}\""
end


Given /^Ginst is runing in a clean ginst dir$/ do
  Ginst::Ginst.working_dir = create_temp_dir
  Ginst::Project.load_projects
end

Given /^I change the build process to "([^\"]*)"$/ do |arg1|
  pending
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ginst-0.2.2 features/step_definitions/manage_projects_steps.rb