gitlab-org--gitlab-foss/spec/models/ci/build_trace_section_spec.rb

14 lines
412 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-09-25 12:54:08 -04:00
require 'spec_helper'
RSpec.describe Ci::BuildTraceSection, model: true do
2017-09-25 12:54:08 -04:00
it { is_expected.to belong_to(:build)}
it { is_expected.to belong_to(:project)}
it { is_expected.to belong_to(:section_name)}
it { is_expected.to validate_presence_of(:section_name) }
it { is_expected.to validate_presence_of(:build) }
it { is_expected.to validate_presence_of(:project) }
end