debian-mirror-gitlab/spec/models/design_management/repository_spec.rb
2023-06-20 00:43:36 +05:30

17 lines
538 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe DesignManagement::Repository, feature_category: :design_management do
let_it_be(:project) { create(:project) }
let(:subject) { ::DesignManagement::Repository.new({ project: project }) }
describe 'associations' do
it { is_expected.to belong_to(:project).inverse_of(:design_management_repository) }
end
describe 'validations' do
it { is_expected.to validate_presence_of(:project) }
it { is_expected.to validate_uniqueness_of(:project) }
end
end