File: upcase_method_name_spec.rb

package info (click to toggle)
ruby-fakeredis 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 280 kB
  • ctags: 217
  • sloc: ruby: 2,954; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 356 bytes parent folder | download
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
      @client.ZCOUNT("key", 2, 3).should == @client.zcount("key", 2, 3)
    end

    it "#ZSCORE" do
      @client.ZSCORE("key", 2).should == @client.zscore("key", 2)
    end
  end
end