Sha256: 20a89ea800215215e1ef6376f22ce48727a64f48c1f50cd6220a6cb66dd44871

Contents?: true

Size: 555 Bytes

Versions: 8

Compression:

Stored size: 555 Bytes

Contents

require File.expand_path('../fixtures', __FILE__)
module Quickl
  describe "RubyTools#parent_module /" do
  
    subject{ RubyTools::parent_module(clazz) }
  
    describe "when called on unqualified class" do
      let(:clazz){ ::String }
      it{ should be_nil }
    end
  
    describe "when called on qualified class" do
      let(:clazz){ RubyTools }
      it{ should == Quickl }
    end
  
    describe "when called on long qualified class" do
      let(:clazz){ Quickl::Fixtures::Utils }
      it{ should == Quickl::Fixtures }
    end
  
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
quickl-0.4.3 spec/ruby_tools/test_parent_module.rb
quickl-0.4.2 spec/ruby_tools/test_parent_module.rb
quickl-0.4.1 spec/ruby_tools/test_parent_module.rb
quickl-0.4.0 spec/ruby_tools/test_parent_module.rb
quickl-0.3.0 spec/ruby_tools/test_parent_module.rb
quickl-0.2.2 spec/ruby_tools/parent_module_spec.rb
quickl-0.2.1 spec/ruby_tools/parent_module_spec.rb
quickl-0.1.1 test/ruby_tools/parent_module.spec