From d163c74bcb577bfbee6b4205507ff4a6869eeadb Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Sun, 14 Jan 2018 22:29:59 -0200 Subject: [PATCH] lint: using it over specify --- spec/models/rate_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/rate_spec.rb b/spec/models/rate_spec.rb index e26d06e..7553c95 100644 --- a/spec/models/rate_spec.rb +++ b/spec/models/rate_spec.rb @@ -15,11 +15,11 @@ RSpec.describe Rating::Rate do it { is_expected.to validate_presence_of :resource } 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 end - specify do + it do expect(object).to validate_uniqueness_of(:author_id) .scoped_to(%i[author_type resource_id resource_type scopeable_id scopeable_type]) .case_insensitive