test/spec_helper.rb in angelo-0.1.22 vs test/spec_helper.rb in angelo-0.1.23
- old
+ new
@@ -82,5 +82,13 @@
include Celluloid
extend Cellper
end
$pool = ActorPool.pool size: CONCURRENCY
+
+def obj
+ {'foo' => 'bar', 'bar' => 123.4567890123456, 'bat' => true}
+end
+
+def obj_s
+ obj.keys.reduce({}){|h,k| h[k] = obj[k].to_s; h}
+end