discourse/spec/models/category_setting_spec.rb

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

13 lines
270 B
Ruby
Raw Normal View History

# frozen_string_literal: true
RSpec.describe CategorySetting do
it { is_expected.to belong_to(:category) }
it do
is_expected.to validate_numericality_of(:num_auto_bump_daily)
.only_integer
.is_greater_than_or_equal_to(0)
.allow_nil
end
end