free_mutant/spec/unit/mutant/parallel_spec.rb
Markus Schirp 99ab9ff171 Change required Ruby version to >=2.3
* This commit does every 2.3 change required to get the build pass
* None of the changes can be extracted, without changing the build setup
2018-09-12 14:21:24 +00:00

18 lines
651 B
Ruby

# frozen_string_literal: true
RSpec.describe Mutant::Parallel do
describe '.async' do
subject { described_class.async(config) }
let(:config) { instance_double(Mutant::Parallel::Config, env: env) }
let(:env) { instance_double(Mutant::Actor::Env, new_mailbox: mailbox) }
let(:mailbox) { Mutant::Actor::Mailbox.new }
let(:master) { instance_double(Mutant::Parallel::Master) }
before do
expect(described_class::Master).to receive(:call).with(config).and_return(master)
end
it { should eql(described_class::Driver.new(mailbox.bind(master))) }
end
end