Sha256: 31cef2cf55ca76213d50dcb70da898232cdba46a08dc28867e3abfd8e518d482

Contents?: true

Size: 324 Bytes

Versions: 8

Compression:

Stored size: 324 Bytes

Contents

require File.dirname(__FILE__)+'/../spec_helper'
require 'gorillib/metaprogramming/singleton_class'

describe 'Singleton Class' do
  it 'returns the singleton class' do
    o = Object.new
    class << o; self end.should == o.singleton_class
  end

  it 'does not have an effect if already provided by another library.'

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gorillib-0.1.7 spec/metaprogramming/singleton_class_spec.rb
gorillib-0.1.6 spec/metaprogramming/singleton_class_spec.rb
gorillib-0.1.5 spec/metaprogramming/singleton_class_spec.rb
gorillib-0.1.4 spec/metaprogramming/singleton_class_spec.rb
gorillib-0.1.3 spec/metaprogramming/singleton_class_spec.rb
gorillib-0.1.2 spec/metaprogramming/singleton_class_spec.rb
gorillib-0.1.1 spec/metaprogramming/singleton_class_spec.rb
gorillib-0.1.0 spec/metaprogramming/singleton_class_spec.rb