Sha256: f67e456804496361a5b4404591282e27ef84453baab2d2dd8a51c86e486fcbbd

Contents?: true

Size: 298 Bytes

Versions: 6

Compression:

Stored size: 298 Bytes

Contents

require 'spec_helper'

describe 'Array Source' do
  it 'just works in a console' do
    expected = <<~TABLE
      +---+---+---+
      | a | b | c |
      +---+---+---+
      | d | e | f |
      +---+---+---+
    TABLE
    [%w(a b c), %w(d e f)].to_table.text_table.to_s.should == expected
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tablesmith-0.4.1 spec/array_table_spec.rb
tablesmith-0.4.0 spec/array_table_spec.rb
tablesmith-0.3.1 spec/array_table_spec.rb
tablesmith-0.3.0 spec/array_table_spec.rb
tablesmith-0.2.2 spec/array_table_spec.rb
tablesmith-0.2.1 spec/array_table_spec.rb