Merge pull request #5197 from lidimayra/workspace

Add spec to cover "Badge Type has many Badges" relation
This commit is contained in:
Gerhard Schlager 2017-09-20 11:37:53 +02:00 committed by GitHub
commit e582e86da3

View File

@ -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