2424 expect ( klass . attributes_schema_by_default ) . to eq ( true )
2525 expect ( klass . relationships_readable_by_default ) . to eq ( true )
2626 expect ( klass . relationships_writable_by_default ) . to eq ( true )
27+ expect ( klass . filters_accept_nil_by_default ) . to eq ( false )
28+ expect ( klass . filters_deny_empty_by_default ) . to eq ( false )
2729 end
2830
2931 it "does not have serializer, type, or model" do
6870 expect ( klass . relationships_readable_by_default ) . to eq ( true )
6971 expect ( klass . relationships_writable_by_default ) . to eq ( true )
7072 expect ( klass . filters_accept_nil_by_default ) . to eq ( false )
73+ expect ( klass . filters_deny_empty_by_default ) . to eq ( false )
7174 end
7275
7376 context "when rails" do
@@ -153,7 +156,8 @@ def self.name
153156 self . attributes_schema_by_default = false
154157 self . relationships_readable_by_default = false
155158 self . relationships_writable_by_default = false
156- self . filters_accept_nil_by_default = false
159+ self . filters_accept_nil_by_default = true
160+ self . filters_deny_empty_by_default = true
157161 end
158162 end
159163
@@ -168,7 +172,8 @@ def self.name
168172 expect ( klass . attributes_schema_by_default ) . to eq ( false )
169173 expect ( klass . relationships_readable_by_default ) . to eq ( false )
170174 expect ( klass . relationships_writable_by_default ) . to eq ( false )
171- expect ( klass . filters_accept_nil_by_default ) . to eq ( false )
175+ expect ( klass . filters_accept_nil_by_default ) . to eq ( true )
176+ expect ( klass . filters_deny_empty_by_default ) . to eq ( true )
172177 end
173178 end
174179
@@ -310,7 +315,8 @@ class TestResourceOverrideSerializer < PORO::ApplicationSerializer
310315 self . attributes_schema_by_default = false
311316 self . relationships_readable_by_default = false
312317 self . relationships_writable_by_default = false
313- self . filters_accept_nil_by_default = false
318+ self . filters_accept_nil_by_default = true
319+ self . filters_deny_empty_by_default = true
314320 end
315321 end
316322
@@ -325,7 +331,8 @@ class TestResourceOverrideSerializer < PORO::ApplicationSerializer
325331 expect ( klass2 . attributes_schema_by_default ) . to eq ( false )
326332 expect ( klass2 . relationships_readable_by_default ) . to eq ( false )
327333 expect ( klass2 . relationships_writable_by_default ) . to eq ( false )
328- expect ( klass2 . filters_accept_nil_by_default ) . to eq ( false )
334+ expect ( klass2 . filters_accept_nil_by_default ) . to eq ( true )
335+ expect ( klass2 . filters_deny_empty_by_default ) . to eq ( true )
329336 end
330337 end
331338
0 commit comments