mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Merge pull request #5197 from lidimayra/workspace
Add spec to cover "Badge Type has many Badges" relation
This commit is contained in:
commit
e582e86da3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue