spec/simple-spreadsheet_spec.rb in simple-spreadsheet-0.3.1 vs spec/simple-spreadsheet_spec.rb in simple-spreadsheet-0.4.1

- old
+ new

@@ -1,7 +1,11 @@ # encoding: utf-8 require 'spec_helper' describe SimpleSpreadsheet do - - + let(:xls_file) { File.expand_path '../fixtures/file.xlsx', __FILE__ } + let(:file_path) { Pathname.new xls_file } + + it 'allows pathnames as filename argument without raising exception' do + expect { SimpleSpreadsheet::Workbook.read(file_path) }.to_not raise_error(NoMethodError) + end end \ No newline at end of file