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