Skip to content

Commit

Permalink
remove set requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Jun 2, 2014
1 parent ba7ee7d commit 5a86be0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec/redisstore_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'spec_helper'
require 'set'

describe RedisStore do
describe '#new' do
Expand All @@ -9,7 +8,6 @@
end

describe RedisStore::Store do
let(:keys) { [1, 2, 3, 4, 5, :foo, 'foo'].to_set }
let(:store) do
store = RedisStore::Store.new
store.raw.flushdb
Expand Down Expand Up @@ -63,13 +61,13 @@
end
describe '#include?' do
it 'checks for a key in the store' do
expect(store.include? :fish).to be_false
expect(store.include? 1).to be_true
expect(store.include? :fish).to be_falsey
expect(store.include? 1).to be_truthy
end
end
describe '#keys' do
it 'lists the keys in the store' do
expect(store.keys.to_set).to eql keys
expect(store.keys.to_set).to match_array [1, 2, 3, 4, 5, :foo, 'foo']
end
end
end
Expand Down

0 comments on commit 5a86be0

Please sign in to comment.