ruby-changes:46644
From: usa <ko1@a...>
Date: Wed, 17 May 2017 01:16:54 +0900 (JST)
Subject: [ruby-changes:46644] usa:r58760 (trunk): Should require at spec file, not fixture file
usa 2017-05-17 01:16:47 +0900 (Wed, 17 May 2017) New Revision: 58760 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58760 Log: Should require at spec file, not fixture file Fixed ERRORs at non-Windows platforms. * spec/rubyspec/library/win32ole/fixtures/classes.rb (require): removed. * spec/rubyspec/library/win32ole/win32ole/ole_get_methods_spec.rb (require): forgotten to require 'win32ole'. Modified files: trunk/spec/rubyspec/library/win32ole/fixtures/classes.rb trunk/spec/rubyspec/library/win32ole/win32ole/ole_get_methods_spec.rb Index: spec/rubyspec/library/win32ole/win32ole/ole_get_methods_spec.rb =================================================================== --- spec/rubyspec/library/win32ole/win32ole/ole_get_methods_spec.rb (revision 58759) +++ spec/rubyspec/library/win32ole/win32ole/ole_get_methods_spec.rb (revision 58760) @@ -1,6 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/library/win32ole/win32ole/ole_get_methods_spec.rb#L1 require File.expand_path('../../fixtures/classes', __FILE__) platform_is :windows do + require 'win32ole' describe "WIN32OLE#ole_get_methods" do Index: spec/rubyspec/library/win32ole/fixtures/classes.rb =================================================================== --- spec/rubyspec/library/win32ole/fixtures/classes.rb (revision 58759) +++ spec/rubyspec/library/win32ole/fixtures/classes.rb (revision 58760) @@ -1,4 +1,3 @@ https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/library/win32ole/fixtures/classes.rb#L1 -require 'win32ole' module WIN32OLESpecs def self.new_ole(name) retried = false -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/