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:
Lidiane Taquehara 2017-09-20 00:51:32 -03:00
parent 87b4246c14
commit 66ed7195d6

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