Sha256: c550921039987ec73cab262137741f601d3a3f676d230d0536ff67bc8fd5f68d

Contents?: true

Size: 282 Bytes

Versions: 6

Compression:

Stored size: 282 Bytes

Contents

require 'spec_helper'

RSpec.describe FakeRedis::CommandExecutor do
  
  let(:redis) { Redis.new }

  context '#write' do
    it 'does not modify its argument' do
      command = [:get, 'key']
      redis.write(command)
      expect(command).to eql([:get, 'key'])
    end
  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
fakeredis-0.9.2 spec/command_executor_spec.rb
fakeredis-0.9.1 spec/command_executor_spec.rb
fakeredis-0.9.0 spec/command_executor_spec.rb
fakeredis-0.8.0 spec/command_executor_spec.rb
fakeredis-0.7.0 spec/command_executor_spec.rb
kuende-fakeredis-0.10.0 spec/command_executor_spec.rb