Sha256: 4a3f92a742f42949319c294390edf0cd44ff9e4bdf144b1958cd9c253a6abaf2

Contents?: true

Size: 585 Bytes

Versions: 3

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

RSpec.describe RSpeed::Redis, '.specs_finished?' do
  before do
    described_class.set('rspeed_pipe_1', '1.0')

    allow(RSpeed::Env).to receive(:pipes).and_return(2)
  end

  context 'when the quantity of pipe result is not the same as the quantity of pipes' do
    it { expect(described_class.specs_finished?).to be(false) }
  end

  context 'when the quantity of pipe result is the same as the quantity of pipes' do
    before { described_class.set('rspeed_pipe_2', '2.0') }

    it { expect(described_class.specs_finished?).to be(true) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspeed-0.5.2 spec/models/rspeed/redis/specs_finished_spec.rb
rspeed-0.5.1 spec/models/rspeed/redis/specs_finished_spec.rb
rspeed-0.5.0 spec/models/rspeed/redis/specs_finished_spec.rb