lib/deimos/test_helpers.rb in deimos-ruby-1.15.1 vs lib/deimos/test_helpers.rb in deimos-ruby-1.16.0

- old
+ new

@@ -371,22 +371,23 @@ input, handler, call_original, &block) schema_class = handler.class.config[:schema] + namespace = handler.class.config[:namespace] expected = input.dup config = handler.class.config use_schema_classes = config[:use_schema_classes] use_schema_classes = use_schema_classes.present? ? use_schema_classes : Deimos.config.schema.use_schema_classes if use_schema_classes && schema_class.present? expected = if input.is_a?(Array) input.map do |payload| - Utils::SchemaClass.instance(payload, schema_class) + Utils::SchemaClass.instance(payload, schema_class, namespace) end else - Utils::SchemaClass.instance(input, schema_class) + Utils::SchemaClass.instance(input, schema_class, namespace) end end expectation = expect(handler).to receive(method).with(expected, anything, &block) expectation.and_call_original if call_original