Sha256: bcb8d7b1ce61104819a552dd938a0d23f8eb86cb9135355b5e478b9304538242
Contents?: true
Size: 726 Bytes
Versions: 8
Compression:
Stored size: 726 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)) ENV["GEM_HOME"] = gem_home.to_s ENV["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(unescape("gem list #{name} --version #{version} -i"), true, nil) end end Then(/^a gem named "(.*?)" is installed$/) do |name| unbundlerize do run_simple(unescape("gem list #{name} -i"), true, nil) end end
Version data entries
8 entries across 8 versions & 1 rubygems