Sha256: a8fcce87c2ed38761664b6c8a5cc1359526bcbe3506ad21da657a4deec646f4b

Contents?: true

Size: 487 Bytes

Versions: 23

Compression:

Stored size: 487 Bytes

Contents

require 'cantango/configuration/shared/registry_ex'

shared_examples_for 'Role Registry' do
  it_should_behave_like "Registry"

  describe 'default settings' do
    its(:has_method) { should == has }
    its(:list_method) { should == list }

    its(:default_has_method) { should be_a Symbol }
    its(:default_list_method) { should be_a Symbol }
  end

  describe "exclude" do
    before do
      subject.exclude :admin
    end

    its(:excluded) { should include(:admin) }
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
cantango-0.8.6 spec/cantango/configuration/shared/role_registry_ex.rb
cantango-0.8.5.1 spec/cantango/configuration/shared/role_registry_ex.rb
cantango-0.8.0 spec/cantango/configuration/shared/role_registry_ex.rb