Sha256: f611661c1df0f9bdbd101bcb1900b177de3523139fe84b1bf5a0d372cca68b65

Contents?: true

Size: 801 Bytes

Versions: 3

Compression:

Stored size: 801 Bytes

Contents

Then /^(?:the )?following has( not)? been conjured:$/ do |not_p, table|
  exists_p = not_p ? "does not exist" : "exists"

  step "I'm on \"master\" branch"

  table.transpose.hashes.each do |mod|
    step "branch \"vendor/#{mod['Name']}\" #{exists_p}"

    if mod['Version']
      step "tag \"vendor/#{mod['Name']}/#{mod['Version']}\" #{exists_p}"
    else
      step "tag matching /^vendor\\/#{Regexp.quote(mod['Name']).gsub('/', '\\/')}\\// #{exists_p}"
    end

    if mod['With file']
      mod['With file'].lines.each do |path|
        step "file \"vendor/#{mod['Name']}/#{path.strip}\" #{exists_p}"
      end
    end

    if mod['Without file']
      mod['Without file'].lines.each do |path|
        step "file \"vendor/#{mod['Name']}/#{path.strip}\" does not exist"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vendorificator-0.1.1 features/step_definitions/vendorificator.rb
vendorificator-0.1.0 features/step_definitions/vendorificator.rb
vendorificator-0.0.1 features/step_definitions/vendorificator.rb