Sha256: afaa830437df47c0f9441e48626fa6423cc3aa076bb9a8d817771a9d3e12a96f
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
require 'spec_helper' include Tablesmith describe Batch do it 'should subclass array' do b = Batch.new b.length.should == 0 b << 1 b << 'a' b[0].should == 1 b[1].should == 'a' b.class.should == Batch end it 'should pass unmatched Array messages to all items' do b = Batch.new b.length.should == 0 b << 1 b << '2' b.to_i.should == [1, 2] end it 'should handle empty Array' do expected = <<-TEXT +---------+ | (empty) | +---------+ TEXT [].to_batch.text_table.to_s.should == expected end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tablesmith-0.1.0 | spec/batch_spec.rb |