14 lines
388 B
Ruby
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
|