debian-mirror-gitlab/spec/models/design_management/repository_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
538 B
Ruby
Raw Normal View History

2020-05-24 23:13:21 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-06-20 00:43:36 +05:30
RSpec.describe DesignManagement::Repository, feature_category: :design_management do
let_it_be(:project) { create(:project) }
let(:subject) { ::DesignManagement::Repository.new({ project: project }) }
2020-05-24 23:13:21 +05:30
2023-06-20 00:43:36 +05:30
describe 'associations' do
it { is_expected.to belong_to(:project).inverse_of(:design_management_repository) }
2020-05-24 23:13:21 +05:30
end
2023-06-20 00:43:36 +05:30
describe 'validations' do
it { is_expected.to validate_presence_of(:project) }
it { is_expected.to validate_uniqueness_of(:project) }
2020-05-24 23:13:21 +05:30
end
end