debian-mirror-gitlab/spec/models/projects/wiki_repository_spec.rb

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

17 lines
423 B
Ruby
Raw Normal View History

2023-01-13 00:05:48 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Projects::WikiRepository do
subject { described_class.new(project: build(:project)) }
describe 'associations' do
it { is_expected.to belong_to(:project).inverse_of(:wiki_repository) }
end
describe 'validations' do
it { is_expected.to validate_presence_of(:project) }
it { is_expected.to validate_uniqueness_of(:project) }
end
end