spec/spec_helper.rb in foreman-0.57.0-java vs spec/spec_helper.rb in foreman-0.58.0

- old
+ new

@@ -56,9 +56,15 @@ until rd.eof? buffer += rd.gets end end +def fork_and_get_exitstatus(args) + pid = Process.spawn("bundle exec bin/foreman #{args}", :out => "/dev/null", :err => "/dev/null") + Process.wait(pid) + $?.exitstatus +end + def mock_exit(&block) block.should raise_error(SystemExit) end def write_foreman_config(app)