custom_emoji_category_spec.rb 310 B

1234567891011121314
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. describe CustomEmojiCategory do
  4. describe 'validations' do
  5. it 'validates name presence' do
  6. record = described_class.new(name: nil)
  7. expect(record).to_not be_valid
  8. expect(record).to model_have_error_on_field(:name)
  9. end
  10. end
  11. end