Sha256: 75752d4f8c86bd1cfcced924d2af57b6371647c235e8bcdf3b0746e9d803f3e6
Contents?: true
Size: 563 Bytes
Versions: 5
Compression:
Stored size: 563 Bytes
Contents
require 'spec_helper' describe Cumuli::CLI::Terminal do it "clears environmental variables" do preserving_env do ENV['GEM_HOME'] = 'somewhere-over-the-rainbow' terminal = Cumuli::CLI::Terminal.new('$GEM_HOME') terminal.clear_env ENV['GEM_HOME'].should == nil end end it "spawns a new thread that runs the command" do preserving_env do pid = fork do Cumuli::CLI::Terminal.new('STRAWBOSSED=true').spawn ENV['STRAWBOSSED'].should == true end Process.kill('INT', pid) end end end
Version data entries
5 entries across 5 versions & 1 rubygems