14 lines
420 B
Ruby
14 lines
420 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe Ci::PipelineMetadata do
|
|
it { is_expected.to belong_to(:project) }
|
|
it { is_expected.to belong_to(:pipeline) }
|
|
|
|
describe 'validations' do
|
|
it { is_expected.to validate_length_of(:title).is_at_least(1).is_at_most(255) }
|
|
it { is_expected.to validate_presence_of(:project) }
|
|
it { is_expected.to validate_presence_of(:pipeline) }
|
|
end
|
|
end
|