Sha256: b763009a0f57e543c966bacdc66f9ef25eab499dd7afb64d20baf0b49d9f0631

Contents?: true

Size: 390 Bytes

Versions: 7

Compression:

Stored size: 390 Bytes

Contents

require 'spec_helper'

describe AridCache::Helpers do
  describe "subclasses_of" do
    before :each do
      class Aa; end
      class Bb < Aa; end
      class Cc < Bb; end
    end
    
    it "should description" do
      AridCache.subclasses_of(Aa).should include(Cc)
      AridCache.subclasses_of(Aa).should include(Bb)
      AridCache.subclasses_of(Bb).should == [Cc]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arid_cache-1.4.4 spec/arid_cache/helpers_spec.rb
arid_cache-1.4.3 spec/arid_cache/helpers_spec.rb
arid_cache-1.4.2 spec/arid_cache/helpers_spec.rb
arid_cache-1.4.1 spec/arid_cache/helpers_spec.rb
arid_cache-1.4.0 spec/arid_cache/helpers_spec.rb
arid_cache-1.3.6 spec/arid_cache/helpers_spec.rb
arid_cache-1.3.5 spec/arid_cache/helpers_spec.rb