Sha256: d321440e4a11893a597c3d78b189202bc92ce86a0b6d12a012053e74241c0146

Contents?: true

Size: 557 Bytes

Versions: 4

Compression:

Stored size: 557 Bytes

Contents

require 'spec_helper'

describe Roo::OpenOffice do
  describe '.new' do
    subject do
      Roo::OpenOffice.new('test/files/numbers1.ods')
    end

    it 'creates an instance' do
      expect(subject).to be_a(Roo::OpenOffice)
    end

    context 'file path is a Pathname' do
      subject do
        Roo::OpenOffice.new(Pathname.new('test/files/numbers1.ods'))
      end

      it 'creates an instance' do
        expect(subject).to be_a(Roo::OpenOffice)
      end
    end
    
  end

  # OpenOffice is an alias of LibreOffice. See libreoffice_spec.
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
roo-2.1.1 spec/lib/roo/openoffice_spec.rb
roo-2.1.0 spec/lib/roo/openoffice_spec.rb
roo-2.0.1 spec/lib/roo/openoffice_spec.rb
culturecode-roo-2.0.2 spec/lib/roo/openoffice_spec.rb