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: e5a0f6ec23f61f4b6d9c1489a8277ada287a2566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

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

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