File: command_executor_spec.rb

package info (click to toggle)
ruby-fakeredis 0.8.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 628 kB
  • sloc: ruby: 4,868; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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