debian-mirror-gitlab/spec/models/project_export_job_spec.rb
2022-08-13 15:12:31 +05:30

16 lines
444 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe ProjectExportJob, type: :model do
describe 'associations' do
it { is_expected.to belong_to(:project) }
it { is_expected.to have_many(:relation_exports) }
end
describe 'validations' do
it { is_expected.to validate_presence_of(:project) }
it { is_expected.to validate_presence_of(:jid) }
it { is_expected.to validate_presence_of(:status) }
end
end