diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-09 11:51:06 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-09 11:51:06 +0000 |
commit | 070c310e87d04865da1b4f217432e22cfae5e380 (patch) | |
tree | d11d9ef6c67b447bc886182b9c02e38aa70a3a00 /test/net/http/utils.rb | |
parent | 9b559f194c9960e66011b8f40d428fe36cb302be (diff) | |
download | ruby-070c310e87d04865da1b4f217432e22cfae5e380.tar.gz |
* test/webrick: Store log in an array.
* test/net/http: Ditto.
* test/open-uri: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http/utils.rb')
-rw-r--r-- | test/net/http/utils.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/net/http/utils.rb b/test/net/http/utils.rb index 3bf7695532..dcd94693c2 100644 --- a/test/net/http/utils.rb +++ b/test/net/http/utils.rb @@ -36,14 +36,14 @@ module TestNetHTTPUtils @server.shutdown @server_thread.join end - assert_match(@log_pattern, @log.string) if @log_pattern + @log_tester.call(@log) if @log_tester # resume global state Net::HTTP.version_1_2 end def spawn_server - @log = StringIO.new('') - @log_pattern = /\A\z/ + @log = [] + @log_tester = lambda {|log| assert_equal([], log ) } @config = self.class::CONFIG server_config = { :BindAddress => config('host'), |