Sha256: 9a65064308ea77bec0649ae054735a095819bf72569d49787e7ed78b22413ab2
Contents?: true
Size: 314 Bytes
Versions: 1
Compression:
Stored size: 314 Bytes
Contents
Given /^I have a new subprocess that takes 3 seconds$/ do @popen = Subprocess::Popen.new('sleep 3') end When /^I wait on said 3 second process to complete$/ do @popen.run @popen.wait end Then /^the subprocess should report a run time of around 3 seconds$/ do @popen.run_time.should be_close(3, 0.2) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
subprocess-0.1.6 | features/step_definitions/popen_reports_runtime_steps.rb |