Sha256: bfe96598e64b15739766fbfbe81dda112702dedac35cf6aeff889bd078e056d4
Contents?: true
Size: 741 Bytes
Versions: 3
Compression:
Stored size: 741 Bytes
Contents
require 'spec_helper' describe Cumuli::App do describe '#start' do let(:opts) { { env: 'test', wait: false, log_dir: log_dir, app_dir: app_set_dir } } let(:app) { Cumuli::App.new(opts) } let(:logs) { File.readlines("#{log_dir}/test.log") } before do clear_logs app.start app.wait_for_app(2323) end after do app.stop end it "launches subprocesses with the foreman command" do ps_line = Cumuli::PS.new.matching.detect{|line| line.match(/foreman: master/) } ps_line.should_not be_nil end it "redirects subprocess output to the logs" do logs.detect {|line| line.match(/started with pid/) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cumuli-0.3.2 | spec/app/app_spec.rb |
cumuli-0.3.1 | spec/app/app_spec.rb |
cumuli-0.3.0 | spec/app/app_spec.rb |