File: upcase_method_name_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 (18 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'spec_helper'

module FakeRedis
  describe "UPCASE method name will call downcase method" do

    before do
      @client = Redis.new
    end

    it "#ZCOUNT" do
      expect(@client.ZCOUNT("key", 2, 3)).to eq(@client.zcount("key", 2, 3))
    end

    it "#ZSCORE" do
      expect(@client.ZSCORE("key", 2)).to eq(@client.zscore("key", 2))
    end
  end
end