Welcome to mirror list, hosted at ThFree Co, Russian Federation.

failure_spec.rb « bulk_imports « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cde62659a4836e8551f31bf2711ed6cbdf5e2bb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe BulkImports::Failure, type: :model do
  describe 'associations' do
    it { is_expected.to belong_to(:entity).required }
  end

  describe 'validations' do
    before do
      create(:bulk_import_failure)
    end

    it { is_expected.to validate_presence_of(:entity) }
  end
end