free_mutant/spec/unit/mutant/runner/driver_spec.rb
2015-11-15 20:16:42 +00:00

26 lines
579 B
Ruby

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