summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Chao <mchao@gitlab.com>2019-11-14 15:32:42 +0800
committerMark Chao <mchao@gitlab.com>2019-11-25 09:06:22 +0800
commitfd4d850b68c479e6fae118a7fa6a568b265423b3 (patch)
tree48ec188b20ecdf43f916bdd7feb64b03cef7771e
parent0d7eb8a73923e0d0f7c864a59bebecf12846f03f (diff)
downloadgitlab-ce-fd4d850b68c479e6fae118a7fa6a568b265423b3.tar.gz
Fix group created from other test from polluting
-rw-r--r--spec/models/project_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index a718f9008b1..ac6ae5e1cc6 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -2924,7 +2924,7 @@ describe Project do
end
describe '#any_lfs_file_locks?', :request_store do
- set(:project) { create(:project) }
+ let_it_be(:project) { create(:project) }
it 'returns false when there are no LFS file locks' do
expect(project.any_lfs_file_locks?).to be_falsey
@@ -3553,7 +3553,7 @@ describe Project do
include ProjectHelpers
using RSpec::Parameterized::TableSyntax
- set(:group) { create(:group) }
+ let_it_be(:group) { create(:group) }
let!(:project) { create(:project, project_level, namespace: group ) }
let(:user) { create_user_from_membership(project, membership) }