jmettraux/ruote — pull request #66 by npj (2012-11-07 13:26:22+00:00)
Title: Fix WaitLogger#wait_for when :or_error flag present

* WaitLogger#check_waiting returns tre or false explicitly based on whether or not the interests match, rather than the number of remaining interests, which may still include the :or_error flag
* adds a test that the expected result is obtained when multiple wait_for calls are in play. It should be noted that the patch eliminates a potential race condition where Thread.current['__result__'] was being overwritten by a later message that did not necessarily match any interests. Reproducing this race condition in the test is extremely challenging, if not impossible.