lib/cocina/rspec/factories.rb in cocina-models-0.93.0 vs lib/cocina/rspec/factories.rb in cocina-models-0.93.1

- old
+ new

@@ -36,10 +36,10 @@ def self.build(type, attributes = {}) raise "Unsupported factory type #{type}" unless supported_type?(type) build_type = type.to_s.delete_suffix(WITH_METADATA_SUFFIX) - fixture = public_send("build_#{build_type}".to_sym, attributes) + fixture = public_send("build_#{build_type}".to_sym, attributes) # rubocop:disable Lint/SymbolConversion return fixture unless type.end_with?(WITH_METADATA_SUFFIX) Cocina::Models.with_metadata(fixture, 'abc123') end