Sha256: 9fd25cdf6a73837314a8a9d88fd7f692be2424c82ff549859bed4b0f6f436bc0

Contents?: true

Size: 382 Bytes

Versions: 8

Compression:

Stored size: 382 Bytes

Contents

require 'spec_helper'

describe SchemaMonkey::Module do

  describe "descendants" do

    it "doesn't fail if descendant contains a BasicObject" do
      mod = Module.new
      child = Module.new
      basic = BasicObject.new

      mod.const_set "Child", child
      mod.const_set "Basic", basic
      expect(SchemaMonkey::Module.descendants(mod)).to eq [child]
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
schema_monkey-3.0.1 spec/module_spec.rb
schema_monkey-3.0.0 spec/module_spec.rb
schema_monkey-2.1.6 spec/module_spec.rb
schema_monkey-2.1.5 spec/module_spec.rb
schema_monkey-2.1.4 spec/module_spec.rb
schema_monkey-2.1.3 spec/module_spec.rb
schema_monkey-2.1.2 spec/module_spec.rb
schema_monkey-2.1.1 spec/module_spec.rb