spec/channel_manager_spec.rb in net-irc-0.0.5 vs spec/channel_manager_spec.rb in net-irc-0.0.6

- old
+ new

@@ -54,10 +54,11 @@ :logger => Logger.new(nil), }) @server.start end + Thread.pass true until @server.instance_variable_get(:@serv) @port = @server.instance_variable_get(:@serv).addr[1] Thread.start do @@ -68,18 +69,22 @@ :pass => "foopass", :logger => Logger.new(nil), }) @client.start end + + Thread.pass + true until @client end server_q = ChannelManagerTestServerSession.testq client_q = ChannelManagerTestClient.testq it "client should manage channel mode/users correctly" do client = @client client.instance_variable_set(:@prefix, Prefix.new("foonick!foouser@localhost")) + true until ChannelManagerTestServerSession.instance ChannelManagerTestServerSession.instance.instance_eval do Thread.exclusive do post client.prefix, JOIN, "#test" post nil, NOTICE, "#test", "sep1" end