Sha256: 9320ba48e02ac71f3eeba226c55ee38603695d3813e29cacf6ece53117e2da5e

Contents?: true

Size: 474 Bytes

Versions: 3

Compression:

Stored size: 474 Bytes

Contents

require 'spec_helper'
require 'cantango/configuration/shared/registry/clazz_ex'

class UserAccount
end

class AdminAccount
end

describe CanTango::Configuration::Accounts do
  subject { CanTango.config.accounts }

  it_should_behave_like "Clazz Registry" do
    let(:hash1) do
      {:a => UserAccount, :b => AdminAccount}
    end    
  end
  
  describe 'register_account' do
    specify { subject.register_class(AdminAccount).registered.should include(:admin) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cantango-config-0.1.9.2 spec/cantango/configuration/accounts_spec.rb
cantango-config-0.1.8.1 spec/cantango/configuration/accounts_spec.rb
cantango-config-0.1.8 spec/cantango/configuration/accounts_spec.rb