Sha256: 9b2711cae01f07aca7d3745612904a81131a587c29c467fb26378346fbe3a2a7

Contents?: true

Size: 1.17 KB

Versions: 8

Compression:

Stored size: 1.17 KB

Contents

Given(/^a mocked home directory$/) do
  set_environment_variable 'HOME', expand_path('.')
end

Given(/^I set the environment variable "(.*)" to "(.*)"/) do |variable, value|
  set_environment_variable(variable.to_s, value.to_s)
end

Given(/^I append "(.*)" to the environment variable "(.*)"/) do |value, variable|
  append_environment_variable(variable.to_s, value.to_s)
end

Given(/^I prepend "(.*)" to the environment variable "(.*)"/) do |value, variable|
  prepend_environment_variable(variable.to_s, value.to_s)
end

Given(/^I set the environment variables? to:/) do |table|
  table.hashes.each do |row|
    variable = row['variable'].to_s
    value = row['value'].to_s

    set_environment_variable(variable, value)
  end
end

Given(/^I append the values? to the environment variables?:/) do |table|
  table.hashes.each do |row|
    variable = row['variable'].to_s
    value = row['value'].to_s

    append_environment_variable(variable, value)
  end
end

Given(/^I prepend the values? to the environment variables?:/) do |table|
  table.hashes.each do |row|
    variable = row['variable'].to_s
    value = row['value'].to_s

    prepend_environment_variable(variable, value)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
aruba-1.0.4 lib/aruba/cucumber/environment.rb
aruba-1.0.3 lib/aruba/cucumber/environment.rb
aruba-1.0.2 lib/aruba/cucumber/environment.rb
aruba-1.0.1 lib/aruba/cucumber/environment.rb
aruba-1.0.0 lib/aruba/cucumber/environment.rb
aruba-1.0.0.pre.alpha.5 lib/aruba/cucumber/environment.rb
aruba-1.0.0.pre.alpha.4 lib/aruba/cucumber/environment.rb
aruba-1.0.0.pre.alpha.3 lib/aruba/cucumber/environment.rb