require 'spec_helper' require 'marty' require 'delorean_lang' STYLE_CODE = <= 4 wb.worksheets[0].styles.borders.each_index do |i| b = border_details(wb.worksheets[0].styles.borders[i]) case i when 0 b.should == [] when 2 b.should == [[:left, :thin, 'FF000000']] when 3 b.should == [[:top, :thick, 'FFFF0000']] when 4 b.should == [[:left, :thin, 'FF000000'], [:top, :thick, 'FFFF0000']] else next end end wb.worksheets[0].styles.cellXfs.count.should >= 8 wb.worksheets[0].styles.cellXfs.each_index do |i| c = wb.worksheets[0].styles.cellXfs[i] case i when 3 c.borderId.should == 0 when 4 c.borderId.should == 0 when 5 c.borderId.should == 2 when 6 c.borderId.should == 0 when 7 c.borderId.should == 3 when 8 c.borderId.should == 4 else next end end end end