Permalink
Browse files

spec for LSET, update gitignore to ignore rdsrv dir. distredis script…

… added

for booting a cluster of redis servers
  • Loading branch information...
Ezra Zygmuntowicz
Ezra Zygmuntowicz committed Mar 1, 2009
1 parent 6ccfb1b commit b344f2c018dee21000d7edc278dc8bb73538ddd1
Showing with 11 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +10 −0 spec/redis_spec.rb
View
@@ -1,2 +1,3 @@
nohup.out
redis/*
+rdsrv
View
@@ -164,6 +164,16 @@
@r.delete('list')
end
+ it "should be able to set a value by indexing into a list" do
+ @r.push_tail "list", 'hello'
+ @r.push_tail "list", 'hello'
+ @r.type?('list').should == "list"
+ @r.list_length('list').should == 2
+ @r.list_set('list', 1, 'goodbye').should be_true
+ @r.list_index('list', 1).should == 'goodbye'
+ @r.delete('list')
+ end
+
it "should be able add members to a set" do
@r.set_add "set", 'key1'
@r.set_add "set", 'key2'

0 comments on commit b344f2c

Please sign in to comment.