Sha256: a6f1c6a159ba653513f4c49198c387ec61698ba4b7e0107b4211f2ea585186cf
Contents?: true
Size: 679 Bytes
Versions: 16
Compression:
Stored size: 679 Bytes
Contents
# == Schema Information # # Table name: faalis_groups # # id :integer not null, primary key # name :string # role :string # created_at :datetime # updated_at :datetime # require 'spec_helper' describe Faalis::Group do context 'Validation' do it 'would not be valid if group already exists' do group(:admin) group = build(:admin_group) expect(group).not_to be_valid end it 'would not be valid without a name and role name' do group1 = build(:admin_group, name: '') group2 = build(:admin_group, role: '') expect(group1).not_to be_valid expect(group2).not_to be_valid end end end
Version data entries
16 entries across 16 versions & 1 rubygems