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

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

17 lines
444 B
Ruby
Raw Normal View History

2020-04-08 14:13:33 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe ProjectExportJob, type: :model do
2020-04-08 14:13:33 +05:30
describe 'associations' do
2022-08-13 15:12:31 +05:30
it { is_expected.to belong_to(:project) }
it { is_expected.to have_many(:relation_exports) }
2020-04-08 14:13:33 +05:30
end
describe 'validations' do
2022-08-13 15:12:31 +05:30
it { is_expected.to validate_presence_of(:project) }
it { is_expected.to validate_presence_of(:jid) }
it { is_expected.to validate_presence_of(:status) }
2020-04-08 14:13:33 +05:30
end
end