Changeset 6033 for lang/ruby

Show
Ignore:
Timestamp:
02/02/08 15:27:58 (5 years ago)
Author:
cho45
Message:

lang/ruby/chokan/branches/citrus/plugins/uri_information.rb:

Fix thread.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/chokan/branches/citrus/plugins/uri_information.rb

    r6032 r6033  
    3636                        Thread.start(channel, URI(uri[0])) do |chan, u| 
    3737                                response(chan, u) 
    38                         end.join 
     38                        end 
    3939                end 
    4040        end 
     
    120120 
    121121                it "should reply correctly" do 
     122                        Thread.critical = true 
    122123                        @socket.string = "" 
    123124                        @plugin.on_privmsg(@prefix, "#test", "urn:ietf:rfc:2812") 
     125                        Thread.pass 
    124126                        @socket.string.should == "NOTICE #test :urn: -> uri\r\n" 
     127 
    125128 
    126129                        @socket.string = "" 
    127130                        @plugin.on_privmsg(@prefix, "#test", "http://localhost/") 
     131                        Thread.pass 
    128132                        @socket.string.should == "NOTICE #test :http: -> uri\r\n" 
     133 
     134                        Thread.critical = false 
    129135                end 
    130136        end