debian-mirror-gitlab/spec/models/resource_events/issue_assignment_event_spec.rb
2023-06-20 00:43:36 +05:30

17 lines
472 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe ResourceEvents::IssueAssignmentEvent, feature_category: :value_stream_management, type: :model do
subject(:event) { build(:issue_assignment_event) }
describe 'associations' do
it { is_expected.to belong_to(:user) }
it { is_expected.to belong_to(:issue) }
end
describe 'validations' do
it { is_expected.to be_valid }
it { is_expected.to validate_presence_of(:issue) }
end
end