Sha256: 41e179bfd90f0a2170d4303b67b72dc4725687c095b43589a771c9ca52246d27
Contents?: true
Size: 422 Bytes
Versions: 36
Compression:
Stored size: 422 Bytes
Contents
require 'spec_helper' RSpec.describe 'RubyPitaya::RedisService', type: :request do it 'mock service' do allow(services[:redis]).to receive(:get).with('key').and_return('something') value = services[:redis].get('key') expect(value).to eq('something') end it 'not mock service' do services[:redis].set('foo', 'bar') value = services[:redis].get('foo') expect(value).to eq('bar') end end
Version data entries
36 entries across 32 versions & 1 rubygems