Sha256: 2d47ed7443bbdd40171de38087737f89ce6706e7d425647ecc46a7436dfa1a34

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

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

class UserAccount
end

class AdminAccount
end

describe CanTango::Config::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_account(AdminAccount).registered.should include(:admin) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cantango-config-0.2.1 spec/cantango/config/accounts_spec.rb
cantango-config-0.2.0 spec/cantango/config/accounts_spec.rb