Sha256: 0cd2b35a92f94f272d42a486c1f4932a859e8664bd720ee45549143b1e451c39
Contents?: true
Size: 620 Bytes
Versions: 4
Compression:
Stored size: 620 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 # TODO: this generates lots of noise when it is killed 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cumuli-0.5.0 | spec/cli/terminal_spec.rb |
cumuli-0.4.1 | spec/cli/terminal_spec.rb |
cumuli-0.4.0 | spec/cli/terminal_spec.rb |
cumuli-0.3.4 | spec/cli/terminal_spec.rb |