diff options
Diffstat (limited to 'spec/rubyspec/optional/capi/module_spec.rb')
-rw-r--r-- | spec/rubyspec/optional/capi/module_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/rubyspec/optional/capi/module_spec.rb b/spec/rubyspec/optional/capi/module_spec.rb index 23fb674f0e..1c21ad2e7c 100644 --- a/spec/rubyspec/optional/capi/module_spec.rb +++ b/spec/rubyspec/optional/capi/module_spec.rb @@ -62,18 +62,16 @@ describe "CApiModule" do mod = @m.rb_define_module_under(CApiModuleSpecs, "ModuleSpecsModuleUnder2") mod.name.should == "CApiModuleSpecs::ModuleSpecsModuleUnder2" end - end - describe "rb_define_module_under" do - before :each do + it "defines a module for an existing Autoload with an extension" 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 it "defines a module for an existing Autoload with a ruby object" do + compile_extension("module_under_autoload") + CApiModuleSpecs::RubyUnderAutoload.name.should == "CApiModuleSpecs::RubyUnderAutoload" end end |