2015-04-14 12:22:39 +01:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Group do
|
2015-05-26 00:03:38 +01:00
|
|
|
let(:group) { FactoryGirl.build(:group) }
|
2015-04-14 12:22:39 +01:00
|
|
|
|
2015-05-26 00:03:38 +01:00
|
|
|
before { stub_symlink_methods }
|
2015-04-14 12:22:39 +01:00
|
|
|
|
2015-05-26 00:03:38 +01:00
|
|
|
it { should_not allow_value("How do you do...\nmy_group").for(:uname) }
|
2015-04-14 12:22:39 +01:00
|
|
|
|
2015-05-26 00:03:38 +01:00
|
|
|
it 'is valid given valid attributes' do
|
|
|
|
expect(group).to be_valid
|
2015-04-14 12:22:39 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|