Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-10-02 19:20:46 +0400
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-10-02 19:20:46 +0400
commitd683ce5c10ee84d9fde153329d08425c7e99941f (patch)
tree6e504b3ec33ad84f69cdcb5f075d7cc37cbfb7fc /spec/models/group_spec.rb
parentfa3ae24ca7a11f3d87c8838cf05a95dfecfa4c5c (diff)
refactored factory + fixed tests
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r--spec/models/group_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb
index eea196fd864..fd7db4b25d9 100644
--- a/spec/models/group_spec.rb
+++ b/spec/models/group_spec.rb
@@ -13,6 +13,8 @@
require 'spec_helper'
describe Group do
+ let!(:group) { create(:group) }
+
it { should have_many :projects }
it { should validate_presence_of :name }
it { should validate_uniqueness_of(:name) }