Sha256: b2cebf1f94a1e1ab38c6fff39c2c17b8b18ff8b04f925d40727ebd86ac5a1bf2
Contents?: true
Size: 458 Bytes
Versions: 4
Compression:
Stored size: 458 Bytes
Contents
# encoding: utf-8 require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Enumerable do describe :to_xls do it "throws no error without data" do lambda { [].to_xls }.should_not raise_error end it "returns 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
to_xls-1.5.3 | spec/enumerable_spec.rb |
to_xls-1.5.2 | spec/enumerable_spec.rb |
to_xls-1.5.1 | spec/enumerable_spec.rb |
to_xls-1.5.0 | spec/enumerable_spec.rb |