Sha256: 0882e82db7fea8c9929c23e06d0bca7ec1ce25720be870b81f5cfa98698475bc
Contents?: true
Size: 603 Bytes
Versions: 2
Compression:
Stored size: 603 Bytes
Contents
require 'test_helper' class LdapAccessGroupTest < ActiveSupport::TestCase def setup @item = LdapAccessGroup.new( group: access_groups(:two), name: 'Ldap Group 2' ) end test 'should be valid' do assert @item.valid? end test 'should require group' do assert_required @item, :group end test 'should require name' do assert_required @item, :name end test 'name should not be too long' do assert_max_length @item, :name, 200 end test 'name should be unique' do assert_uniqueness @item, :name, :group => access_groups(:three) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
barkest_core-1.5.4.0 | test/models/ldap_access_group_test.rb |
barkest_core-1.5.3.0 | test/models/ldap_access_group_test.rb |