Sha256: 094c3419a5a4df48ecb0068b6477c550f12f272610c39c30f6862f9eeb0a2070

Contents?: true

Size: 400 Bytes

Versions: 5

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

RSpec.describe RSpeed::Redis, '#result?' do
  context 'when has no key rspeed on redis' do
    it { expect(described_class.result?).to be(false) }
  end

  context 'when has key rspeed on redis' do
    before { described_class.set('rspeed', { files: [[1, '1_spec.rb']], number: 0, total: 1 }.to_json) }

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspeed-0.7.0 spec/models/rspeed/redis/result_spec.rb
rspeed-0.6.0 spec/models/rspeed/redis/result_spec.rb
rspeed-0.5.2 spec/models/rspeed/redis/result_spec.rb
rspeed-0.5.1 spec/models/rspeed/redis/result_spec.rb
rspeed-0.5.0 spec/models/rspeed/redis/result_spec.rb