Sha256: 52023c47fdb3af516e0bf84f6c86ecdf5642744c80984e3bd7e31ca6ecc29985

Contents?: true

Size: 412 Bytes

Versions: 15

Compression:

Stored size: 412 Bytes

Contents

# encoding: utf-8

require_relative "../../lib/rubyexts/object_space"

describe ObjectSpace do
  describe "#classes" do
    it "should returns the only item in array" do
      -> { Class.new }.should change { ObjectSpace.classes.length }.by(1)
    end

    it "should returns the only item in array" do
      ObjectSpace.classes.each do |klass|
        klass.should be_kind_of(Class)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
media-path-0.1.2 vendor/rubyexts/spec/rubyexts/object_space_spec.rb
simple-templater-0.0.1.3 vendor/rubyexts/spec/rubyexts/object_space_spec.rb
media-path-0.1.1.pre vendor/rubyexts/spec/rubyexts/object_space_spec.rb
rubyexts-0.3.pre spec/rubyexts/object_space_spec.rb
simple-templater-0.0.1.2 vendor/rubyexts/spec/rubyexts/object_space_spec.rb
media-path-0.1.1 vendor/rubyexts/spec/rubyexts/object_space_spec.rb
rubyexts-0.0.2.1 spec/rubyexts/object_space_spec.rb
simple-templater-0.0.1.1 vendor/rubyexts/spec/rubyexts/object_space_spec.rb
rubyexts-0.0.2 spec/rubyexts/object_space_spec.rb
rango-0.0.6 vendor/rubyexts/spec/rubyexts/object_space_spec.rb
rango-0.1.pre vendor/rubyexts/spec/rubyexts/object_space_spec.rb
rubyexts-0.1.pre spec/rubyexts/object_space_spec.rb
media-path-0.1 vendor/rubyexts/spec/rubyexts/object_space_spec.rb
rubyexts-0.0.1 spec/rubyexts/object_space_spec.rb
simple-templater-0.0.1 vendor/rubyexts/spec/rubyexts/object_space_spec.rb