Fix offense constant definition in block in serializer_helper_spec.rb

This commit is contained in:
Ana Nunes da Silva
2024-03-26 10:52:20 +00:00
parent f1309db0f0
commit cfca7816d5
2 changed files with 1 additions and 3 deletions

View File

@@ -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'

View File

@@ -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