Sha256: 121ec0000975d77169195893236490ba24eaf66f381b3f3329691019c2ef2717
Contents?: true
Size: 742 Bytes
Versions: 2
Compression:
Stored size: 742 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cumuli-0.2.1 | spec/app/app_spec.rb |
cumuli-0.2.0 | spec/app/app_spec.rb |