Fix RSpec/DescribedClass
cop (#25104)
This commit is contained in:
parent
1e243e2df7
commit
c42591356d
66 changed files with 347 additions and 414 deletions
|
@ -3,7 +3,7 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe NoteLengthValidator do
|
||||
subject { NoteLengthValidator.new(attributes: { note: true }, maximum: 500) }
|
||||
subject { described_class.new(attributes: { note: true }, maximum: 500) }
|
||||
|
||||
describe '#validate' do
|
||||
it 'adds an error when text is over 500 characters' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue