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

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

require 'spec_helper'

RSpec.describe JiraConnectSubscription do
  describe 'associations' do
    it { is_expected.to belong_to(:installation).class_name('JiraConnectInstallation') }
    it { is_expected.to belong_to(:namespace).class_name('Namespace') }
  end

  describe 'validations' do
    it { is_expected.to validate_presence_of(:installation) }
    it { is_expected.to validate_presence_of(:namespace) }
  end
end