spec/lib/roo/spreadsheet_spec.rb in roo-2.8.3 vs spec/lib/roo/spreadsheet_spec.rb in roo-2.9.0
- old
+ new
@@ -23,10 +23,10 @@
context 'for a tempfile' do
let(:tempfile) { Tempfile.new('foo.csv') }
let(:filename) { tempfile.path }
it 'loads the proper type' do
- expect(Roo::CSV).to receive(:new).with(filename, file_warning: :ignore).and_call_original
+ expect(Roo::CSV).to receive(:new).with(filename, {file_warning: :ignore}).and_call_original
expect(Roo::Spreadsheet.open(tempfile, extension: :csv)).to be_a(Roo::CSV)
end
end
context 'for a url' do