ruby-changes:46633
From: eregon <ko1@a...>
Date: Tue, 16 May 2017 21:29:48 +0900 (JST)
Subject: [ruby-changes:46633] eregon:r58748 (trunk): Avoid using a class variable in socket specs
eregon 2017-05-16 21:29:44 +0900 (Tue, 16 May 2017) New Revision: 58748 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58748 Log: Avoid using a class variable in socket specs Modified files: trunk/spec/rubyspec/library/socket/fixtures/classes.rb Index: spec/rubyspec/library/socket/fixtures/classes.rb =================================================================== --- spec/rubyspec/library/socket/fixtures/classes.rb (revision 58747) +++ spec/rubyspec/library/socket/fixtures/classes.rb (revision 58748) @@ -35,7 +35,7 @@ module SocketSpecs https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/library/socket/fixtures/classes.rb#L35 end def self.port - @@_port ||= find_available_port + @port ||= find_available_port end def self.str_port -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/