mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 06:29:30 +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
|
@ -3,7 +3,7 @@ require_dependency 'badge_type'
|
||||||
|
|
||||||
describe BadgeType do
|
describe BadgeType do
|
||||||
|
|
||||||
|
it { is_expected.to have_many :badges }
|
||||||
it { is_expected.to validate_presence_of :name }
|
it { is_expected.to validate_presence_of :name }
|
||||||
it { is_expected.to validate_uniqueness_of :name }
|
it { is_expected.to validate_uniqueness_of :name }
|
||||||
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user