Sha256: 6775e8be61bd25430c57d412a3c433d2fc2de5c1732a3c002c589631128ac7b8

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

# encoding: utf-8
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Array do

  describe :to_xls do
    it "should throw no error without data" do
      lambda { [].to_xls }.should_not raise_error
    end

    it "should return the correct string representing a spreadsheet" do
      s = StringIO.new
      xls = make_book(mock_users)
      xls.write(s)
      s.string.bytes.to_a.should == mock_users.to_xls.bytes.to_a
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
to_xls-1.0.0 spec/array_spec.rb