Sha256: 4a1f558511b4e5a757f4847797eeaeab4c229e70153b4438a64c98f40f3425fd
Contents?: true
Size: 702 Bytes
Versions: 2
Compression:
Stored size: 702 Bytes
Contents
# The DCell specs start a completely separate Ruby VM running this code # for complete integration testing using 0MQ over TCP require 'rubygems' require 'bundler' Bundler.setup require 'dcell' Dir['./spec/options/*.rb'].map { |f| require f } options = {:id => TEST_NODE[:id], :addr => "tcp://#{TEST_NODE[:addr]}:#{TEST_NODE[:port]}"} options.merge! test_db_options DCell.start options class TestActor include Celluloid attr_reader :value def initialize @value = 42 end def the_answer DCell::Global[:the_answer] end def win(&block) yield 10000 20000 end def crash raise "the spec purposely crashed me :(" end end TestActor.supervise_as :test_actor sleep
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
dcell-0.16.1 | spec/test_node.rb |
stn-dcell-0.16.0 | spec/test_node.rb |