mirror of
https://github.com/kikobar/mastodon.git
synced 2024-12-28 00:34:16 +00:00
Fix Lint/EmptyClass cop (#24795)
This commit is contained in:
parent
8d61d2b0da
commit
05e3abe9d9
|
@ -159,11 +159,6 @@ Lint/EmptyBlock:
|
||||||
- 'spec/models/user_role_spec.rb'
|
- 'spec/models/user_role_spec.rb'
|
||||||
- 'spec/models/web/setting_spec.rb'
|
- 'spec/models/web/setting_spec.rb'
|
||||||
|
|
||||||
# Configuration parameters: AllowComments.
|
|
||||||
Lint/EmptyClass:
|
|
||||||
Exclude:
|
|
||||||
- 'spec/controllers/api/base_controller_spec.rb'
|
|
||||||
|
|
||||||
Lint/NonLocalExitFromIterator:
|
Lint/NonLocalExitFromIterator:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/helpers/jsonld_helper.rb'
|
- 'app/helpers/jsonld_helper.rb'
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
class FakeService; end
|
|
||||||
|
|
||||||
describe Api::BaseController do
|
describe Api::BaseController do
|
||||||
|
before do
|
||||||
|
stub_const('FakeService', Class.new)
|
||||||
|
end
|
||||||
|
|
||||||
controller do
|
controller do
|
||||||
def success
|
def success
|
||||||
head 200
|
head 200
|
||||||
|
|
Loading…
Reference in a new issue