spec/test_node.rb in dcell-0.10.0 vs spec/test_node.rb in dcell-0.12.0.pre
- old
+ new
@@ -4,11 +4,11 @@
require 'rubygems'
require 'bundler'
Bundler.setup
require 'dcell'
-DCell.setup :id => 'test_node', :addr => 'tcp://127.0.0.1:21264'
+DCell.start :id => 'test_node', :addr => 'tcp://127.0.0.1:21264'
class TestActor
include Celluloid
attr_reader :value
@@ -23,11 +23,7 @@
def crash
raise "the spec purposely crashed me :("
end
end
-class TestGroup < Celluloid::Group
- supervise DCell::Group
- supervise TestActor, :as => :test_actor
-end
-
-TestGroup.run
+TestActor.supervise_as :test_actor
+sleep
\ No newline at end of file