Sha256: 61ae9dc0398622bd4d8c3f332f85425aa58b52f322597fd069eb7f5bfa078663
Contents?: true
Size: 830 Bytes
Versions: 2
Compression:
Stored size: 830 Bytes
Contents
# encoding: utf-8 require 'minitest/autorun' require_relative '../../lib/jruby_excelcom' describe 'ExcelConnection' do $con ||= begin e = ExcelConnection::connect e.display_alerts = false e end $wb ||= $con.workbook("#{File.dirname(File.absolute_path(__FILE__))}/../resources/test.xlsx") Minitest.after_run { $wb.close unless $wb.nil?; $wb = nil $con.quit unless $con.nil?; $con = nil } it '::connect' do $con.wont_be_nil ExcelConnection::connect(false) do |con| con.version.is_a? String end end it '#version' do $con.version.is_a? String end it '#workbook' do $wb.wont_be_nil $con.workbook("#{File.dirname(File.absolute_path(__FILE__))}/../resources/test2.xlsx") { |wb| wb.name.is_a? String } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jruby_excelcom-0.0.2-java | test/unit/excel_connection_spec.rb |
jruby_excelcom-0.0.1-java | test/unit/excel_connection_spec.rb |