Sha256: 436e113f26ecb7f9659d292f5758952efc4c11c3658384a5d24376c08645403b

Contents?: true

Size: 855 Bytes

Versions: 10

Compression:

Stored size: 855 Bytes

Contents

require 'spec_helper'
require 'cantango/configuration/shared/registry/hash_ex'
require 'fixtures/models/project'

CanTango.debug!
connect_db
migrate

describe CanTango::Configuration::Models do
  let(:models) { CanTango.config.models }
  let(:orms) { CanTango.config.orms }
  
  it_should_behave_like "Hash Registry" do
    subject { models.actions }
    
    let(:hash1) do
      {:a => 1, :b => 2}
    end
    
    let(:hash2) do
      {:c => 3}
    end
  end
  
  subject { models } 
    
  describe 'available_models' do
    before do
      orms.register :active_record
    end

    specify { subject.available_models.should_not be_empty }
    specify { subject.available_models.should include('Project') }
  end
  
  describe 'by_reg_exp' do
  end

  describe 'by_category' do
  end

  describe 'exclude' do
  end

  describe 'excluded' do
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cantango-config-0.1.9.2 spec/cantango/configuration/models_spec.rb
cantango-config-0.1.8.1 spec/cantango/configuration/models_spec.rb
cantango-config-0.1.8 spec/cantango/configuration/models_spec.rb
cantango-config-0.1.7 spec/cantango/configuration/models_spec.rb
cantango-config-0.1.6 spec/cantango/configuration/models_spec.rb
cantango-config-0.1.5 spec/cantango/configuration/models_spec.rb
cantango-config-0.1.4 spec/cantango/configuration/models_spec.rb
cantango-config-0.1.3 spec/cantango/configuration/models_spec.rb
cantango-config-0.1.2 spec/cantango/configuration/models_spec.rb
cantango-config-0.1.1 spec/cantango/configuration/models_spec.rb