Enables RSpec/DescribedClass cop & fixes all issues

Autocorrection for existing issues, and stashing at .rubocop_todo.yml
the false positives

Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass
This commit is contained in:
Bertocq
2018-01-07 00:38:19 +01:00
parent 0c3dc56650
commit 265d4d0967
38 changed files with 327 additions and 316 deletions

View File

@@ -8,7 +8,7 @@ describe Verification::Sms do
it "should validate uniqness of phone" do
create(:user, confirmed_phone: "699999999")
sms = Verification::Sms.new(phone: "699999999")
sms = described_class.new(phone: "699999999")
expect(sms).to_not be_valid
end