Sha256: 50c02362d36dd12833e11c8db1212044372f854b539da0192a706ceb3ebee015

Contents?: true

Size: 1.6 KB

Versions: 3

Compression:

Stored size: 1.6 KB

Contents

Given /^nothing in particular$/ do
  nil # NOP
end

When /^nothing happens$/ do
  nil # NOP
end

Given /^a repository with following Vendorfile:$/ do |vendorfile_contents|
  create_dir 'working-repository'
  cd 'working-repository'
  run_simple 'git init'
  # Configure Git username & email to unclutter console output
  run_simple 'git config user.name Cucumber'
  run_simple 'git config user.email cucumber@`hostname --fqdn`'
  write_file('README', 'Lorem ipsum dolor sit amet')
  write_file('Vendorfile', vendorfile_contents)
  run_simple 'git add .'
  run_simple 'git commit -m "New repo"'
end

Given /^a remote repository$/ do
  create_dir '../remote-repository'
  cd '../remote-repository'
  run_simple 'git init --bare'
  # Configure Git username & email to unclutter console output
  run_simple 'git config user.name Cucumber'
  run_simple 'git config user.email cucumber@`hostname --fqdn`'
  cd '../working-repository'
  run_simple 'git remote add origin ../remote-repository'
end

When /(?:I have following Gemfile|I change Gemfile to|following Gemfile):$/ do |gemfile_contents|
  write_file('Gemfile', gemfile_contents)
  run_simple(without_bundler('bundle'))
  run_simple 'git add Gemfile Gemfile.lock'
  run_simple 'git commit -m bundle'
end

When /^I change Vendorfile to:$/ do |vendorfile_contents|
  write_file('Vendorfile', vendorfile_contents)
  run_simple 'git commit -m "Updated Vendorfile" Vendorfile'
end

When /^I run vendor command "(.*)"$/ do |args|
  args = args.split
  args[0] = args[0].to_sym

  Dir.chdir(current_dir) do
    with_redirected_stdout do
      Vendorificator::CLI.start args
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vendorificator-0.5.git.v0.4.0.63.g8e9d54d features/step_definitions/basic.rb
vendorificator-0.5.git.v0.4.0.60.g9c35209 features/step_definitions/basic.rb
vendorificator-0.5.git.v0.4.0.17.g26d50d8 features/step_definitions/basic.rb