gitlab-org--gitlab-foss/spec/models/jira_connect_subscription_spec.rb

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

16 lines
452 B
Ruby
Raw Normal View History

# 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