lint: using it over specify

main
Washington Botelho 2018-01-14 22:29:59 -02:00
parent f52de88423
commit d163c74bcb
No known key found for this signature in database
GPG Key ID: BECE10A8106CC7A0
1 changed files with 2 additions and 2 deletions

View File

@ -15,11 +15,11 @@ RSpec.describe Rating::Rate do
it { is_expected.to validate_presence_of :resource } it { is_expected.to validate_presence_of :resource }
it { is_expected.to validate_presence_of :value } it { is_expected.to validate_presence_of :value }
specify do it do
is_expected.to validate_numericality_of(:value).is_less_than_or_equal_to(100).is_less_than_or_equal_to 100 is_expected.to validate_numericality_of(:value).is_less_than_or_equal_to(100).is_less_than_or_equal_to 100
end end
specify do it do
expect(object).to validate_uniqueness_of(:author_id) expect(object).to validate_uniqueness_of(:author_id)
.scoped_to(%i[author_type resource_id resource_type scopeable_id scopeable_type]) .scoped_to(%i[author_type resource_id resource_type scopeable_id scopeable_type])
.case_insensitive .case_insensitive