Increased test coverage

This commit is contained in:
Dmitriy Zaporozhets 2012-11-21 07:14:05 +03:00
parent e9be4b375b
commit f614ae8ef7
7 changed files with 84 additions and 42 deletions

View file

@ -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