@@ -57,7 +57,8 @@ def compute
5757
5858 let ( :authenticator ) { nil }
5959 let ( :default_serializers ) do
60- [ Foobara ::CommandConnectors ::Serializers ::ErrorsSerializer , Foobara ::CommandConnectors ::Serializers ::JsonSerializer ]
60+ [ Foobara ::CommandConnectors ::Serializers ::ErrorsSerializer ,
61+ Foobara ::CommandConnectors ::Serializers ::JsonSerializer ]
6162 end
6263 let ( :default_pre_commit_transformer ) { nil }
6364
@@ -650,7 +651,9 @@ def execute
650651
651652 context "with AggregateSerializer" do
652653 let ( :serializers ) { Foobara ::CommandConnectors ::Serializers ::AggregateSerializer }
653- let ( :pre_commit_transformers ) { Foobara ::CommandConnectors ::Transformers ::LoadAggregatesPreCommitTransformer }
654+ let ( :pre_commit_transformers ) {
655+ Foobara ::CommandConnectors ::Transformers ::LoadAggregatesPreCommitTransformer
656+ }
654657
655658 context "when user exists with a referral" do
656659 let ( :command_class ) do
@@ -1320,6 +1323,17 @@ def transform(result)
13201323 expect ( subclass . default_serializers ) . to be_an ( Array )
13211324 expect ( subclass . default_serializers ) . to_not be_empty
13221325 end
1326+
1327+ context "when subclass of a subclass" do
1328+ let ( :subsubclass ) do
1329+ stub_class :SomeSubsubclass , subclass
1330+ end
1331+
1332+ it "returns some serializers" do
1333+ expect ( subsubclass . default_serializers ) . to be_an ( Array )
1334+ expect ( subsubclass . default_serializers ) . to_not be_empty
1335+ end
1336+ end
13231337 end
13241338 end
13251339end
0 commit comments