2021-05-05 17:09:59 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe Ci::RunnerProject do
|
|
|
|
it_behaves_like 'includes Limitable concern' do
|
|
|
|
subject { build(:ci_runner_project, project: create(:project), runner: create(:ci_runner, :project)) }
|
|
|
|
end
|
2022-01-26 13:17:51 -05:00
|
|
|
|
|
|
|
context 'loose foreign key on ci_runner_projects.project_id' do
|
|
|
|
it_behaves_like 'cleanup by a loose foreign key' do
|
|
|
|
let!(:parent) { create(:project) }
|
|
|
|
let!(:model) { create(:ci_runner_project, project: parent) }
|
|
|
|
end
|
|
|
|
end
|
2021-05-05 17:09:59 -04:00
|
|
|
end
|