free_mutant/spec/unit/mutant/runner/driver_spec.rb

27 lines
579 B
Ruby
Raw Normal View History

2014-12-09 00:10:31 +00:00
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') }
2014-12-09 00:10:31 +00:00
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)
2014-12-09 00:10:31 +00:00
end
it { should be(value) }
2014-12-09 00:10:31 +00:00
end
end