Sha256: e3c975bae0d238efce774e1ca3f665a5d68bd28ac722f6406956b5cd9e923f72

Contents?: true

Size: 1.09 KB

Versions: 42

Compression:

Stored size: 1.09 KB

Contents

require 'fwtoolkit/git_client'
require 'aruba/api'

Then /^the file named "([^"]*)" should have been committed to the repository at path "([^"]*)"$/ do |file, repo_path|
  repo = GitClient::Repository.new(File.join(current_dir, repo_path))
  status = repo.status
  if status == nil
    status.should be_nil
  else
    repo.status.values.any?{ |v| v.include?(file).should be_false }
  end
end

Then /^an initialized git repository should exists inside a directory named "([^"]*)"$/ do |repo_path|
  repo = GitClient::Repository.new(File.join(current_dir, repo_path))
  repo.initialized?
end

Given /^an initialized git repository inside a directory named "([^"]*)"$/ do |repo_path|
  repo = GitClient::Repository.new(File.join(current_dir, repo_path))
  repo.init
end

Given /^a valid \.gitignore file exists inside a directory named "([^"]*)"$/ do |repo_path|
  write_file File.join(repo_path, '.gitignore'), ".DB_Store\ntemp\ntmp"
end

Given /^the directory "([^"]*)" contains an uncommitted file named "([^"]*)"$/ do |repo_path, file_name|
  write_file File.join(repo_path, file_name), ".DB_Store\ntemp\ntmp"
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
fwtoolkit-2.6.4 features/step_definitions/git_steps.rb
fwtoolkit-2.6.3 features/step_definitions/git_steps.rb
fwtoolkit-2.6.2 features/step_definitions/git_steps.rb
fwtoolkit-2.6.1 features/step_definitions/git_steps.rb
fwtoolkit-2.6.0 features/step_definitions/git_steps.rb
fwtoolkit-2.5.0 features/step_definitions/git_steps.rb
fwtoolkit-2.4.0 features/step_definitions/git_steps.rb
fwtoolkit-2.3.6 features/step_definitions/git_steps.rb
fwtoolkit-2.3.5 features/step_definitions/git_steps.rb
fwtoolkit-2.3.4 features/step_definitions/git_steps.rb
fwtoolkit-2.3.3 features/step_definitions/git_steps.rb
fwtoolkit-2.3.2 features/step_definitions/git_steps.rb
fwtoolkit-2.3.1 features/step_definitions/git_steps.rb
fwtoolkit-2.3.0 features/step_definitions/git_steps.rb
fwtoolkit-2.2.4 features/step_definitions/git_steps.rb
fwtoolkit-2.2.3 features/step_definitions/git_steps.rb
fwtoolkit-2.2.2 features/step_definitions/git_steps.rb
fwtoolkit-2.2.1 features/step_definitions/git_steps.rb
fwtoolkit-2.2.0 features/step_definitions/git_steps.rb
fwtoolkit-2.1.10 features/step_definitions/git_steps.rb