Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_topic_spec.rb « projects « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c7a989040c705de5b9503f0fdfee85144452ea54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Projects::ProjectTopic do
  let_it_be(:project_topic, reload: true) { create(:project_topic) }

  subject { project_topic }

  it { expect(subject).to be_valid }

  describe 'associations' do
    it { is_expected.to belong_to(:project) }
    it { is_expected.to belong_to(:topic) }
  end
end