Sha256: dcf0e7ef6a1d3eddb3d17ca1a94ef518aa4823fd9abb9a46ed9be8453f6df189

Contents?: true

Size: 556 Bytes

Versions: 14

Compression:

Stored size: 556 Bytes

Contents

require 'spec_helper'

describe OrmAdapter do
  subject { OrmAdapter }
  
  describe "when a new adapter is created (by inheriting form OrmAdapter::Base)" do
    let!(:adapter) { Class.new(OrmAdapter::Base) }
    
    its(:adapters) { should include(adapter) }
    
    describe "and the adapter has a model class" do
      let(:model) { Class.new }
      
      before { adapter.stub!(:model_classes).and_return([model]) }
      
      its(:model_classes) { should include(model) }
    end
    
    after { OrmAdapter.adapters.delete(adapter) }
  end
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
devise_sociable-0.1.0 vendor/bundle/gems/orm_adapter-0.0.7/spec/orm_adapter_spec.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/orm_adapter-0.0.7/spec/orm_adapter_spec.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/orm_adapter-0.0.7/spec/orm_adapter_spec.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/orm_adapter-0.0.7/spec/orm_adapter_spec.rb
orm_adapter-0.2.0 spec/orm_adapter_spec.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/orm_adapter-0.0.7/spec/orm_adapter_spec.rb
orm_adapter-0.1.0 spec/orm_adapter_spec.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/orm_adapter-0.0.7/spec/orm_adapter_spec.rb
orm_adapter_activeresource-0.0.1 spec/orm_adapter_spec.rb
orm_adapter-0.0.7 spec/orm_adapter_spec.rb
orm_adapter-0.0.6 spec/orm_adapter_spec.rb
orm_adapter-0.0.5 spec/orm_adapter_spec.rb
orm_adapter-0.0.4 spec/orm_adapter_spec.rb
orm_adapter-0.0.3 spec/orm_adapter_spec.rb