gearheads
/
mastodon
Archived
2
0
Fork 0

Fix Lint/EmptyClass cop (#24795)

gh/dev
Matt Jankowski 2023-05-02 15:06:51 -04:00 committed by GitHub
parent 8d61d2b0da
commit 05e3abe9d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View File

@ -159,11 +159,6 @@ Lint/EmptyBlock:
- 'spec/models/user_role_spec.rb'
- 'spec/models/web/setting_spec.rb'
# Configuration parameters: AllowComments.
Lint/EmptyClass:
Exclude:
- 'spec/controllers/api/base_controller_spec.rb'
Lint/NonLocalExitFromIterator:
Exclude:
- 'app/helpers/jsonld_helper.rb'

View File

@ -2,9 +2,11 @@
require 'rails_helper'
class FakeService; end
describe Api::BaseController do
before do
stub_const('FakeService', Class.new)
end
controller do
def success
head 200