ruby-changes:48417
From: eregon <ko1@a...>
Date: Sun, 29 Oct 2017 02:45:51 +0900 (JST)
Subject: [ruby-changes:48417] eregon:r60531 (trunk): Make sure to compile each extension only once in ruby/spec
eregon 2017-10-29 02:45:46 +0900 (Sun, 29 Oct 2017) New Revision: 60531 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60531 Log: Make sure to compile each extension only once in ruby/spec Modified files: trunk/spec/ruby/optional/capi/class_spec.rb trunk/spec/ruby/optional/capi/module_spec.rb Index: spec/ruby/optional/capi/module_spec.rb =================================================================== --- spec/ruby/optional/capi/module_spec.rb (revision 60530) +++ spec/ruby/optional/capi/module_spec.rb (revision 60531) @@ -2,6 +2,7 @@ require File.expand_path('../spec_helper https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/module_spec.rb#L2 require File.expand_path('../fixtures/module', __FILE__) load_extension('module') +compile_extension("module_under_autoload") describe "CApiModule" do @@ -65,10 +66,6 @@ describe "CApiModule" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/module_spec.rb#L66 end describe "rb_define_module_under" do - before :each do - compile_extension("module_under_autoload") - end - it "defines a module for an existing Autoload with an extension" do CApiModuleSpecs::ModuleUnderAutoload.name.should == "CApiModuleSpecs::ModuleUnderAutoload" end Index: spec/ruby/optional/capi/class_spec.rb =================================================================== --- spec/ruby/optional/capi/class_spec.rb (revision 60530) +++ spec/ruby/optional/capi/class_spec.rb (revision 60531) @@ -2,6 +2,8 @@ require File.expand_path('../spec_helper https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/class_spec.rb#L2 require File.expand_path('../fixtures/class', __FILE__) load_extension("class") +compile_extension("class_under_autoload") +compile_extension("class_id_under_autoload") autoload :ClassUnderAutoload, "#{object_path}/class_under_autoload_spec" autoload :ClassIdUnderAutoload, "#{object_path}/class_id_under_autoload_spec" @@ -276,8 +278,6 @@ describe "C-API Class function" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/class_spec.rb#L278 end it "defines a class for an existing Autoload" do - compile_extension("class_under_autoload") - ClassUnderAutoload.name.should == "ClassUnderAutoload" end @@ -307,8 +307,6 @@ describe "C-API Class function" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/class_spec.rb#L307 end it "defines a class for an existing Autoload" do - compile_extension("class_id_under_autoload") - ClassIdUnderAutoload.name.should == "ClassIdUnderAutoload" end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/