Skip to content

Commit

Permalink
added tests for Hiredis#bulk_reply
Browse files Browse the repository at this point in the history
  • Loading branch information
Asmod4n committed Dec 10, 2015
1 parent fa1d2bc commit 2ae485a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/hiredis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
assert_equal(:OK, hiredis.reply)
assert_equal("bar", hiredis.reply)

hiredis.queue(:set, "mruby-hiredis-test:foo", "bar")
hiredis.queue(:get, "mruby-hiredis-test:foo")
assert_equal([:OK, "bar"], hiredis.bulk_reply)

hiredis.queue(:nonexistant)
assert_kind_of(Hiredis::ReplyError, hiredis.reply)
hiredis.del("mruby-hiredis-test:foo")
Expand Down

0 comments on commit 2ae485a

Please sign in to comment.