mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
Add spec to cover Badge Type has many Badges relation
Also: fix filename. `_spec` suffix was missing. By default, RSpec ignores files in this situation. Ref: https://github.com/rspec/rspec-core/issues/642
This commit is contained in:
parent
87b4246c14
commit
66ed7195d6
@ -3,7 +3,7 @@ require_dependency 'badge_type'
|
||||
|
||||
describe BadgeType do
|
||||
|
||||
it { is_expected.to have_many :badges }
|
||||
it { is_expected.to validate_presence_of :name }
|
||||
it { is_expected.to validate_uniqueness_of :name }
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user