Change all `:empty_project` to `:project`

parent 7b95940b
......@@ -112,7 +112,7 @@ describe Gitlab::Geo::LogCursor::Daemon do
let(:geo_node) { create(:geo_node, :current) }
let(:group_1) { create(:group) }
let(:group_2) { create(:group) }
let(:project) { create(:empty_project, group: group_1) }
let(:project) { create(:project, group: group_1) }
let(:repository_updated_event) { create(:geo_repository_updated_event, project: project) }
let(:event_log) { create(:geo_event_log, repository_updated_event: repository_updated_event) }
let!(:event_log_state) { create(:geo_event_log_state, event_id: event_log.id - 1) }
......
......@@ -329,9 +329,9 @@ describe GeoNode, type: :model do
group_1 = create(:group)
group_2 = create(:group)
nested_group_1 = create(:group, parent: group_1)
project_1 = create(:empty_project, group: group_1)
project_2 = create(:empty_project, group: nested_group_1)
project_3 = create(:empty_project, group: group_2)
project_1 = create(:project, group: group_1)
project_2 = create(:project, group: nested_group_1)
project_3 = create(:project, group: group_2)
node.update_attribute(:namespaces, [group_1, group_2, nested_group_1])
......
......@@ -3,10 +3,10 @@ require 'spec_helper'
describe GeoNodeStatus do
let!(:geo_node) { create(:geo_node, :current) }
let(:group) { create(:group) }
let!(:project_1) { create(:empty_project, group: group) }
let!(:project_2) { create(:empty_project, group: group) }
let!(:project_3) { create(:empty_project) }
let!(:project_4) { create(:empty_project) }
let!(:project_1) { create(:project, group: group) }
let!(:project_2) { create(:project, group: group) }
let!(:project_3) { create(:project) }
let!(:project_4) { create(:project) }
subject { described_class.new }
......
......@@ -77,8 +77,8 @@ describe Geo::FileDownloadDispatchWorker do
context 'when node has namespace restrictions' do
let(:group_1) { create(:group) }
let!(:project_1) { create(:empty_project, group: group_1) }
let!(:project_2) { create(:empty_project) }
let!(:project_1) { create(:project, group: group_1) }
let!(:project_2) { create(:project) }
before do
allow(ProjectCacheWorker).to receive(:perform_async).and_return(true)
......
......@@ -3,8 +3,8 @@ require 'spec_helper'
describe Geo::RepositoriesCleanUpWorker do
let!(:geo_node) { create(:geo_node) }
let(:group) { create(:group) }
let!(:project_1) { create(:empty_project, group: group) }
let!(:project_2) { create(:empty_project) }
let!(:project_1) { create(:project, group: group) }
let!(:project_2) { create(:project) }
describe '#perform' do
before do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment