Sha256: f1098d24ecff03b053a4b5fe102ac6ed80070de204b52392f5190e30216f30ab
Contents?: true
Size: 935 Bytes
Versions: 3
Compression:
Stored size: 935 Bytes
Contents
describe Unidom::Authorization::Permission, type: :model do before :each do end after :each do end context do model_attributes = { name: 'User Management', path: 'users' } it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes it_behaves_like 'validates text', model_attributes, :name, length: 2..described_class.columns_hash['name'].limit it_behaves_like 'validates text', model_attributes, :path, length: 2..described_class.columns_hash['path'].limit it_behaves_like 'scope', :path_is, [ { attributes_collection: [ model_attributes ], count_diff: 1, args: [ model_attributes[:path] ] }, { attributes_collection: [ model_attributes ], count_diff: 0, args: [ "/#{model_attributes[:path]}" ] }, { attributes_collection: [ model_attributes ], count_diff: 0, args: [ "#{model_attributes[:path]}.html" ] } ] end end
Version data entries
3 entries across 3 versions & 1 rubygems