Increased test coverage
This commit is contained in:
parent
e9be4b375b
commit
f614ae8ef7
7 changed files with 84 additions and 42 deletions
|
@ -22,4 +22,12 @@ describe Group do
|
|||
it { should validate_presence_of :path }
|
||||
it { should validate_uniqueness_of(:path) }
|
||||
it { should validate_presence_of :owner }
|
||||
|
||||
describe :users do
|
||||
it { group.users.should == [] }
|
||||
end
|
||||
|
||||
describe :human_name do
|
||||
it { group.human_name.should == group.name }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue