summaryrefslogtreecommitdiff
path: root/spec/models/jira_connect_subscription_spec.rb
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