Sha256: e5f6e845bd7cb98fc07790eccb44ae16f5c238583fe2c63a3dcd3c14069b8ee9

Contents?: true

Size: 511 Bytes

Versions: 3

Compression:

Stored size: 511 Bytes

Contents

shared_examples 'Unidom::Authorization::Authorizing' do |model_attributes, authorizer_class_list, authorizer_attributes_list|

  before :each do
  end

  after :each do
  end

  context do

    authorizer_class_list.each_with_index do |authorizer_class, index|
      it_behaves_like 'belongs_to', model_attributes, :authorizer, authorizer_class, authorizer_attributes_list[index]
    end

    it_behaves_like 'polymorphic scope', model_attributes, :authorized_by, :authorizer, authorizer_class_list

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
unidom-authorization-2.0 lib/rspec/models/unidom/authorization/authorizing_shared_examples.rb
unidom-authorization-1.6.10 lib/rspec/models/unidom/authorization/authorizing_shared_examples.rb
unidom-authorization-1.6.9 lib/rspec/models/unidom/authorization/authorizing_shared_examples.rb