Sha256: f645370d1bfb5e596ee66601cffe04732c077510ac1eccf3c5bbfad898ecc14b

Contents?: true

Size: 293 Bytes

Versions: 6

Compression:

Stored size: 293 Bytes

Contents

require 'spec_helper'

describe 'Hash Source' do
  it 'just works in a console' do
    expected = <<~TABLE
      +---+---+---+
      | a | b | c |
      +---+---+---+
      | 1 | 2 | 3 |
      +---+---+---+
    TABLE
    {a: 1, b: 2, c: 3}.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/hash_table_spec.rb
tablesmith-0.4.0 spec/hash_table_spec.rb
tablesmith-0.3.1 spec/hash_table_spec.rb
tablesmith-0.3.0 spec/hash_table_spec.rb
tablesmith-0.2.2 spec/hash_table_spec.rb
tablesmith-0.2.1 spec/hash_table_spec.rb