mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix offense constant definition in block in serializer_helper_spec.rb
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
# AllowedMethods: enums
|
||||
Lint/ConstantDefinitionInBlock:
|
||||
Exclude:
|
||||
- 'spec/helpers/serializer_helper_spec.rb'
|
||||
- 'spec/lib/reports/line_items_spec.rb'
|
||||
- 'spec/models/spree/ability_spec.rb'
|
||||
- 'spec/models/spree/gateway_spec.rb'
|
||||
|
||||
@@ -4,10 +4,9 @@ require 'spec_helper'
|
||||
|
||||
describe SerializerHelper, type: :helper do
|
||||
let(:serializer) do
|
||||
class ExampleEnterpriseSerializer < ActiveModel::Serializer
|
||||
Class.new(ActiveModel::Serializer) do
|
||||
attributes :id, :name
|
||||
end
|
||||
ExampleEnterpriseSerializer
|
||||
end
|
||||
|
||||
describe "#required_attributes" do
|
||||
|
||||
Reference in New Issue
Block a user