|
94 | 94 | format_class.file_extensions.each_pair do |sym, content_type| |
95 | 95 | writer_mock = double("writer") |
96 | 96 | expect(writer_mock).to receive(:got_here) |
97 | | - expect(writer_class).to receive(:for).with(file_name: "#{@rdf_writer_iv_basename}.#{sym}").and_return(writer_class) |
| 97 | + expect(writer_class).to receive(:for).with({file_name: "#{@rdf_writer_iv_basename}.#{sym}"}).and_return(writer_class) |
98 | 98 | writer_class.open("#{@rdf_writer_iv_basename}.#{sym}") do |r| |
99 | 99 | expect(r).to be_a(RDF::Writer) |
100 | 100 | writer_mock.got_here |
|
117 | 117 | format_class.file_extensions.each_pair do |sym, content_type| |
118 | 118 | writer_mock = double("writer") |
119 | 119 | expect(writer_mock).to receive(:got_here) |
120 | | - expect(writer_class).to receive(:for).with(file_name: "#{@rdf_writer_iv_basename}.#{sym}").and_return(writer_class) |
| 120 | + expect(writer_class).to receive(:for).with({file_name: "#{@rdf_writer_iv_basename}.#{sym}"}).and_return(writer_class) |
121 | 121 | writer_class.open("#{@rdf_writer_iv_basename}.#{sym}", file_name: "#{@rdf_writer_iv_basename}.#{sym}") do |r| |
122 | 122 | expect(r).to be_a(RDF::Writer) |
123 | 123 | writer_mock.got_here |
|
129 | 129 | format_class.content_types.each_pair do |content_type, formats| |
130 | 130 | writer_mock = double("writer") |
131 | 131 | expect(writer_mock).to receive(:got_here) |
132 | | - expect(writer_class).to receive(:for).with(content_type: content_type, file_name: @rdf_writer_iv_basename).and_return(writer_class) |
| 132 | + expect(writer_class).to receive(:for).with({content_type: content_type, file_name: @rdf_writer_iv_basename}).and_return(writer_class) |
133 | 133 | writer_class.open(@rdf_writer_iv_basename, content_type: content_type) do |r| |
134 | 134 | expect(r).to be_a(RDF::Writer) |
135 | 135 | writer_mock.got_here |
|
0 commit comments