vmc-ng/lib/vmc/spec_helpers.rb in vmc-0.4.0.beta.82 vs vmc-ng/lib/vmc/spec_helpers.rb in vmc-0.4.0.beta.83
- old
+ new
@@ -403,9 +403,13 @@
end
def kill
$vmc_event.kill_process
end
+
+ def with_output
+ yield $vmc_event.wait_for_event(EventLog::Printed).line
+ end
end
RSpec.configure do |c|
c.include VMCHelpers
c.include VMCMatchers