Sha256: 4a9388438142d9d864047940a3e2be62e0a817a8c086a89572fac99c79a400fb

Contents?: true

Size: 335 Bytes

Versions: 5

Compression:

Stored size: 335 Bytes

Contents

describe Wice::Spreadsheet do
  subject(:spreadsheet){Wice::Spreadsheet.new('hello', ';')}

  describe '#<<(row)' do
    subject(:add_row) {spreadsheet << row}
    let(:row) {%w(hello world!)}

    it 'sends :<< to @csv' do
      expect(spreadsheet.instance_variable_get :@csv).to receive(:<<).with row
      add_row
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wice_grid-7.1.4 spec/wice/wice_grid_spreadsheet_spec.rb
wice_grid-7.1.3 spec/wice/wice_grid_spreadsheet_spec.rb
wice_grid-7.1.2 spec/wice/wice_grid_spreadsheet_spec.rb
wice_grid-7.1.1 spec/wice/wice_grid_spreadsheet_spec.rb
wice_grid-7.1.0 spec/wice/wice_grid_spreadsheet_spec.rb