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