use #described_class, as suggested by RuboCop

This commit is contained in:
Hauke Klement
2015-02-16 17:04:28 +01:00
parent 0bb5dae334
commit 8e374c6914
37 changed files with 119 additions and 119 deletions

View File

@ -4,7 +4,7 @@ describe ApplicationPolicy do
describe '#initialize' do
context 'without a user' do
it 'raises an error' do
expect { ApplicationPolicy.new(nil, nil) }.to raise_error(Pundit::NotAuthorizedError)
expect { described_class.new(nil, nil) }.to raise_error(Pundit::NotAuthorizedError)
end
end
end