debian-mirror-gitlab/spec/models/protected_tag_spec.rb
2020-08-09 17:44:08 +05:30

15 lines
315 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.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