summaryrefslogtreecommitdiff
path: root/spec/models/group_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-03-20 23:09:33 +0100
committerDouwe Maan <douwe@selenight.nl>2016-03-20 23:09:33 +0100
commit19aa20d528aca670fd22954e08bf05f2f7a8fe32 (patch)
treee9fd4fd51a783fcc300aa6029f10499dfb3822b7 /spec/models/group_spec.rb
parent7c51d5efecdad1a7f52ffecdf57c86b7b90ca166 (diff)
downloadgitlab-ce-19aa20d528aca670fd22954e08bf05f2f7a8fe32.tar.gz
Fix more specs
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r--spec/models/group_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb
index 0591aa089d8..208922b5a8e 100644
--- a/spec/models/group_spec.rb
+++ b/spec/models/group_spec.rb
@@ -59,18 +59,17 @@ describe Group, models: true do
describe 'scopes' do
let!(:private_group) { create(:group, :private) }
let!(:internal_group) { create(:group, :internal) }
- let!(:public_group) { create(:group, :public) }
describe 'public_only' do
subject { described_class.public_only.to_a }
- it{ is_expected.to eq([public_group]) }
+ it{ is_expected.to eq([group]) }
end
describe 'public_and_internal_only' do
subject { described_class.public_and_internal_only.to_a }
- it{ is_expected.to eq([public_group, internal_group]) }
+ it{ is_expected.to eq([group, internal_group]) }
end
end