Skip to content

Commit

Permalink
sds#187 | Expect #exist to return integer
Browse files Browse the repository at this point in the history
  • Loading branch information
swistaczek authored Jun 15, 2020
1 parent d7d9352 commit 4da1381
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/commands/exists_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
describe '#exists(key)' do
before { @key = 'mock-redis-test:45794' }

it 'returns false for keys that do not exist' do
@redises.exists(@key).should == false
it 'returns 0 for keys that do not exist' do
@redises.exists(@key).should == 0
end

it 'returns true for keys that do exist' do
it 'returns 1 for keys that do exist' do
@redises.set(@key, 1)
@redises.exists(@key).should == true
@redises.exists(@key).should == 1
end
end

0 comments on commit 4da1381

Please sign in to comment.