Skip to content

Commit 0f0b551

Browse files
committed
Use inferred format when dumping, if not defined in info.
1 parent 664dfea commit 0f0b551

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/spec/matchers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def io_name
325325
info = @info.respond_to?(:information) ? @info.information : @info.inspect
326326
"Graphs identical\n" +
327327
"\n#{info + "\n" unless info.empty?}" +
328-
"Results:\n#{actual.dump(@info.format, **dump_opts) rescue @actual.inspect}" +
328+
"Results:\n#{actual.dump((@info.format || format), **dump_opts) rescue @actual.inspect}" +
329329
"\nDebug:\n#{@info.logger}"
330330
end
331331

0 commit comments

Comments
 (0)