Sha256: 116e04914e5e4b16049e515baafdd296d0bfc128f7abc06c01fb648c12a4a0cf

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

require 'test_helper'

module Vedeu

  module Distributed

    describe Server do

      let(:described)     { Vedeu::Distributed::Server }
      let(:instance)      { described.instance }
      let(:configuration) {}

      describe '.input' do
        let(:data) {}

        subject { described.input(data) }
      end

      describe '.output' do
        subject { described.output }
      end

      describe '#pid' do
        before { Process.stubs(:pid).returns(9876) }

        subject { instance.pid }

        it { subject.must_be_instance_of(Fixnum) }
        it { subject.must_equal(9876) }
      end

      describe '.restart' do
        subject { described.restart }
      end

      describe '.shutdown' do
        subject { described.shutdown }
      end

      describe '.start' do
        subject { described.start }
      end

      describe '.status' do
        subject { described.status }
      end

      describe '.stop' do
        subject { described.stop }
      end

    end # Server

  end # Distributed

end # Vedeu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.4.2 test/lib/vedeu/distributed/server_test.rb
vedeu-0.4.1 test/lib/vedeu/distributed/server_test.rb
vedeu-0.4.0 test/lib/vedeu/distributed/server_test.rb
vedeu-0.3.5 test/lib/vedeu/distributed/server_test.rb