debian-mirror-gitlab/spec/models/users/callout_spec.rb
2022-01-26 12:08:38 +05:30

14 lines
388 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Users::Callout do
let_it_be(:callout) { create(:callout) }
it_behaves_like 'having unique enum values'
describe 'validations' do
it { is_expected.to validate_presence_of(:feature_name) }
it { is_expected.to validate_uniqueness_of(:feature_name).scoped_to(:user_id).ignoring_case_sensitivity }
end
end