Sha256: 1bcfe1ee985cad6f753e7656416a2c2d35daaf82336ddfb77b8073ea994c1127
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
require 'test_helper' class CarrotTest < Test::Unit::TestCase TEST_QUEUE = '_carrot_test' test "simple server connection" do c = Carrot.new end test "large messages" do msg = 'a' * 1024 * 1024 q = Carrot.queue(TEST_QUEUE) q.publish(msg) assert_equal msg, q.pop end test "reset" do c = Carrot.new q = c.queue(TEST_QUEUE) count = q.message_count q.publish('test') c.reset assert_equal count + 1, q.message_count end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
carrot-0.8.1 | test/carrot_test.rb |