Sha256: 44b9b853ac3f99e252a70fb24bdaae682e05fed204b3b0d7c46e9535d8dff098

Contents?: true

Size: 651 Bytes

Versions: 8

Compression:

Stored size: 651 Bytes

Contents

# 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

Version data entries

8 entries across 8 versions & 1 rubygems

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