Sha256: 6426c528583f9e2f81e4c0573563bd3d6d877e51105de028641b9e557b615593

Contents?: true

Size: 1.17 KB

Versions: 10

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

10 entries across 10 versions & 3 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/cucumber/environment.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/cucumber/environment.rb
aruba-2.2.0 lib/aruba/cucumber/environment.rb
aruba-2.1.0 lib/aruba/cucumber/environment.rb
aruba-2.0.1 lib/aruba/cucumber/environment.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/aruba-2.0.0/lib/aruba/cucumber/environment.rb
aruba-2.0.0 lib/aruba/cucumber/environment.rb
aruba-1.1.2 lib/aruba/cucumber/environment.rb
aruba-1.1.1 lib/aruba/cucumber/environment.rb
aruba-1.1.0 lib/aruba/cucumber/environment.rb