Sha256: 2df95edf9f4032335712b30fa437193e8acc8b803aa6c6ecb4c9d29b3ec6b5d4

Contents?: true

Size: 610 Bytes

Versions: 8

Compression:

Stored size: 610 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Mutant::Parallel::Driver do
  let(:object) { described_class.new(binding) }

  let(:binding) { instance_double(Mutant::Actor::Binding) }
  let(:value)   { instance_double(Object, 'value')        }

  describe '#stop' do
    subject { object.stop }

    before do
      expect(binding).to receive(:call).with(:stop)
    end

    it_should_behave_like 'a command method'
  end

  describe '#status' do
    subject { object.status }

    before do
      expect(binding).to receive(:call).with(:status).and_return(value)
    end

    it { should be(value) }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.8.24 spec/unit/mutant/parallel/driver_spec.rb
mutant-0.8.23 spec/unit/mutant/parallel/driver_spec.rb
mutant-0.8.22 spec/unit/mutant/parallel/driver_spec.rb
mutant-0.8.21 spec/unit/mutant/parallel/driver_spec.rb
mutant-0.8.20 spec/unit/mutant/parallel/driver_spec.rb
mutant-0.8.19 spec/unit/mutant/parallel/driver_spec.rb
mutant-0.8.18 spec/unit/mutant/parallel/driver_spec.rb
mutant-0.8.17 spec/unit/mutant/parallel/driver_spec.rb