# encoding: utf-8 require 'spec_helper' describe SimpleSpreadsheet do describe "Open CSV (.csvx) file read-only mode" do before do @workbook = SimpleSpreadsheet::Workbook.read(File.join(File.dirname(__FILE__), "fixtures/file.csvx"), ".csvx") end it "should can open the file" do @workbook.should_not be_nil end it "should use right class" do @workbook.class.to_s.should eq("CsvxReader") end it "should see the right number of sheets" do @workbook.sheets.count.should eq(1) end it "should read strings from first sheets" do @workbook.cell(1,1).should eq("String1") end it "should read integer from first sheets" do @workbook.cell(1,2).should eq("1") end end end