debian-mirror-gitlab/spec/models/jira_connect_subscription_spec.rb

16 lines
452 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# 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