summaryrefslogtreecommitdiff
path: root/spec/models/protected_tag_spec.rb
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