Sha256: b19b430cea1891b176d318c59ba0dda4ce5db247416e6c5dc0154b7f400e4f95
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
require 'spec_helper' describe Cumuli::App::SubApp do let(:sub_app) { Cumuli::App::SubApp.new( "nodified: ../../../bin/cumuli ./noded -p 2323" ) } describe '#wait_for_start' do it "raises an error if the app in unavailable via TCP socket after timeout" do TCPSocket.should_receive(:new).with('localhost', 2323).and_raise(Exception) expect { sub_app.wait_for_start(0.002) }.to raise_error end it "does not raise an error if the TCP socket is available" do TCPSocket.should_receive(:new).with('localhost', 2323) expect { sub_app.wait_for_start(10) }.not_to raise_error end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cumuli-0.3.4 | spec/app/sub_app_spec.rb |