Fix RSpec/DescribedClass
cop (#29472)
This commit is contained in:
parent
c09b8a7164
commit
6262ceeb70
12 changed files with 29 additions and 29 deletions
|
@ -24,7 +24,7 @@ RSpec.describe UserSettings do
|
|||
|
||||
context 'when setting was not defined' do
|
||||
it 'raises error' do
|
||||
expect { subject[:foo] }.to raise_error UserSettings::KeyError
|
||||
expect { subject[:foo] }.to raise_error described_class::KeyError
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -93,7 +93,7 @@ RSpec.describe UserSettings do
|
|||
describe '.definition_for' do
|
||||
context 'when key is defined' do
|
||||
it 'returns a setting' do
|
||||
expect(described_class.definition_for(:always_send_emails)).to be_a UserSettings::Setting
|
||||
expect(described_class.definition_for(:always_send_emails)).to be_a described_class::Setting
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue