test/carrot_test.rb in famoseagle-carrot-0.6.0 vs test/carrot_test.rb in famoseagle-carrot-0.7.0
- old
+ new
@@ -3,6 +3,13 @@
class CarrotTest < Test::Unit::TestCase
test "simple server connection" do
c = Carrot.new
end
+
+ test "large messages" do
+ msg = 'a' * 1024 * 1024
+ q = Carrot.queue('_carrot_test')
+ q.publish(msg)
+ assert_equal msg, q.pop
+ end
end