Sha256: b74d54cb0308bc8e78ee0f06de929ebcd5b4642971a381d422ebbea1fe6de531
Contents?: true
Size: 547 Bytes
Versions: 1
Compression:
Stored size: 547 Bytes
Contents
require 'spec_helper' describe Cumuli::Terminal do it "clears environmental variables" do preserving_env do ENV['GEM_HOME'] = 'somewhere-over-the-rainbow' terminal = Cumuli::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::Terminal.new('STRAWBOSSED=true').spawn ENV['STRAWBOSSED'].should == true end Process.kill('INT', pid) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cumuli-0.1.0 | spec/terminal_spec.rb |