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