Sha256: 664bc71c416d2eba8f2bf8a4255297f8efd6e0ea184af72200129885e4b762ec
Contents?: true
Size: 907 Bytes
Versions: 1
Compression:
Stored size: 907 Bytes
Contents
# # testing ruote # # Wed Jan 26 09:21:06 JST 2011 # require File.join(File.dirname(__FILE__), %w[ .. test_helper.rb ]) #require File.join(File.dirname(__FILE__), %w[ .. functional storage_helper.rb ]) require 'ostruct' require 'ruote' require 'ruote/svc/participant_list' class UtEngineTest < Test::Unit::TestCase class FakeStorage def initialize @count = -1 end def put(doc) @count = @count + 1 return true if @count == 0 nil end def get_configuration(whatever) { 'list' => [] } end end # Fighting issue #20 found by 'sandbox' # # https://github.com/jmettraux/ruote/issues#issue/20 # def test_register_participant_fail_and_retry con = OpenStruct.new(:storage => FakeStorage.new) pl = Ruote::ParticipantList.new(con) pl.register('toto', Ruote::NullParticipant, { :hello => :world }, nil) assert true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruote-2.2.0 | test/unit/ut_21_participant_list.rb |