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.71 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.70 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.69 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.68 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.67 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.66 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.65 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.64 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.63 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.62 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.61 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.60 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.59 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.58 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.57 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.56 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.54 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.53 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.52 test/lib/vedeu/distributed/subprocess_test.rb
vedeu-0.6.51 test/lib/vedeu/distributed/subprocess_test.rb