Sha256: c98fdfbf256c507298d2e8bc242aba62970d6ccb70db6bff4dcfbbe956af5303

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

RSpec.describe RSpeed::Redis, '.specs_initiated?' do
  context 'when has no pipe flag key' do
    it { expect(described_class.specs_finished?).to be(false) }
  end

  context 'when has at least one pipe flag key' do
    before { described_class.set('rspeed_pipe_1', '1.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_initiated_spec.rb
rspeed-0.5.1 spec/models/rspeed/redis/specs_initiated_spec.rb
rspeed-0.5.0 spec/models/rspeed/redis/specs_initiated_spec.rb