Sha256: ff9d863acc62d46183a6d35e7bed98d08f79cc5fbc239707591c99a248b5c45b
Contents?: true
Size: 641 Bytes
Versions: 3
Compression:
Stored size: 641 Bytes
Contents
require 'spec/spec_helper' require 'icuke/waxsim' describe ICuke::Simulator do describe :launch do it "should run any setup commands" do s = ICuke::Simulator.new s.stub(:view).and_return(nil) p = ICuke::Simulator::Process.new('foo', {:env => {}}) f = "/tmp/command_was_run.#{$$}" p.stub(:setup_commands).and_return(["touch #{f}"]) p.stub(:with_launch_options).and_return(p) BackgroundProcess.stub(:run).and_return(nil) File.delete(f) rescue nil ICuke::SDK.use('4.0') s.launch(p) File.exist?(f).should be_true File.delete(f) rescue nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
iCuke-0.6.6 | spec/simulator_spec.rb |
iCuke-0.6.5 | spec/simulator_spec.rb |
iCuke-0.6.4 | spec/simulator_spec.rb |