debian-mirror-gitlab/spec/models/protected_tag_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
327 B
Ruby
Raw Normal View History

2019-07-07 11:18:12 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe ProtectedTag do
2017-08-17 22:00:37 +05:30
describe 'Associations' do
2021-04-29 21:17:54 +05:30
it { is_expected.to belong_to(:project).touch(true) }
2017-08-17 22:00:37 +05:30
end
describe 'Validation' do
it { is_expected.to validate_presence_of(:project) }
it { is_expected.to validate_presence_of(:name) }
end
end