Sha256: 0a73bc658a08fb665d4e03d8f3b8eadf99943414428a2166dcb6f1d7cb1d5bc4

Contents?: true

Size: 532 Bytes

Versions: 4

Compression:

Stored size: 532 Bytes

Contents

require 'spec_helper'
require 'roo'

describe ExcelAbstraction::WorkBook do
  let(:spreadsheet) { ExcelAbstraction::SpreadSheet.new }

  subject { spreadsheet.workbook }

  describe "#title" do
    it "sets the title property" do
      expect(subject).to receive(:set_properties).with(title: 'Foo')
      subject.title('Foo')
    end
  end

  describe "#organization" do
    it "sets the company property" do
      expect(subject).to receive(:set_properties).with(company: 'Foo')
      subject.organization('Foo')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
excel_templating-0.4.2 spec/excel_abstraction/work_book_spec.rb
excel_templating-0.4.1 spec/excel_abstraction/work_book_spec.rb
excel_templating-0.4.0 spec/excel_abstraction/work_book_spec.rb
excel_templating-0.3.2 spec/excel_abstraction/work_book_spec.rb