Sha256: 6b2204b47ba55578605844957a3d4bd97ff0fe485d4ebd808da55bd5df94bb17

Contents?: true

Size: 884 Bytes

Versions: 21

Compression:

Stored size: 884 Bytes

Contents

# -*- encoding: utf-8 -*-

require "tmpdir"
require "pathname"

Given(/^a sandboxed GEM_HOME directory named "(.*?)"$/) do |name|
  backup_envvar("GEM_HOME")
  backup_envvar("GEM_PATH")

  @aruba_timeout_seconds = 30

  gem_home = Pathname.new(Dir.mktmpdir(name))
  aruba.environment["GEM_HOME"] = gem_home.to_s
  aruba.environment["GEM_PATH"] = [gem_home.to_s, ENV["GEM_PATH"]].join(":")
  @cleanup_dirs << gem_home
end

Then(/^a gem named "(.*?)" is installed with version "(.*?)"$/) do |name, version|
  unbundlerize do
    run_simple(
      sanitize_text("gem list #{name} --version #{version} -i"),
      :fail_on_error => true,
      :exit_timeout => nil
     )
  end
end

Then(/^a gem named "(.*?)" is installed$/) do |name|
  unbundlerize do
    run_simple(
      sanitize_text("gem list #{name} -i"),
      :fail_on_error => true,
      :exit_timeout => nil
     )
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
test-kitchen-1.14.1 features/step_definitions/gem_steps.rb
test-kitchen-1.14.0 features/step_definitions/gem_steps.rb
test-kitchen-1.13.2 features/step_definitions/gem_steps.rb
test-kitchen-1.13.1 features/step_definitions/gem_steps.rb
test-kitchen-1.13.0 features/step_definitions/gem_steps.rb
test-kitchen-1.11.1 features/step_definitions/gem_steps.rb
test-kitchen-1.11.0 features/step_definitions/gem_steps.rb
test-kitchen-1.10.2 features/step_definitions/gem_steps.rb
test-kitchen-1.10.2.dev features/step_definitions/gem_steps.rb
test-kitchen-1.10.0 features/step_definitions/gem_steps.rb
test-kitchen-1.9.2 features/step_definitions/gem_steps.rb
test-kitchen-1.9.1 features/step_definitions/gem_steps.rb
test-kitchen-1.9.0 features/step_definitions/gem_steps.rb
test-kitchen-1.8.0 features/step_definitions/gem_steps.rb
test-kitchen-1.7.3 features/step_definitions/gem_steps.rb
test-kitchen-1.7.2 features/step_definitions/gem_steps.rb
test-kitchen-1.7.1 features/step_definitions/gem_steps.rb
test-kitchen-1.7.1.dev features/step_definitions/gem_steps.rb
test-kitchen-1.6.0 features/step_definitions/gem_steps.rb
test-kitchen-1.5.0 features/step_definitions/gem_steps.rb