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

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

require 'spec_helper'

RSpec.describe ProtectedTag do
  describe 'Associations' do
    it { is_expected.to belong_to(:project).touch(true) }
  end

  describe 'Validation' do
    it { is_expected.to validate_presence_of(:project) }
    it { is_expected.to validate_presence_of(:name) }
  end
end