Sha256: bb172ad14ab0f424bda02652260579671b00a34b0755e728694701e24f2b0ed5

Contents?: true

Size: 1014 Bytes

Versions: 62

Compression:

Stored size: 1014 Bytes

Contents

require 'test_helper'

module Vedeu

  module Distributed

    describe Subprocess do

      let(:described)   { Vedeu::Distributed::Subprocess }
      let(:instance)    { described.new(application) }
      let(:application) {}

      describe '#initialize' do
        it { instance.must_be_instance_of(described) }
        it do
          instance.instance_variable_get('@application').must_equal(application)
        end
        it { instance.instance_variable_get('@pid').must_equal(nil) }
      end

      describe '.execute!' do
        it { described.must_respond_to(:execute!) }
      end

      describe '#execute!' do
        it { instance.must_respond_to(:execute!) }
      end

      describe '#kill' do
        before do
          Process.stubs(:kill)
          File.stubs(:unlink)
        end

        subject { instance.kill }

        it {
          Process.expects(:kill)
          File.expects(:unlink)
          subject
        }
      end

    end # Subprocess

  end # Distributed

end # Vedeu

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
vedeu-0.6.30 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.29 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.28 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.27 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.26 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.25 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.24 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.23 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.22 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.21 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.20 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.19 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.18 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.17 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.16 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.15 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.14 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.13 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.12 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.11 test/lib/vedeu/distributed/subprocess_test.rb