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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user