Sha256: 99155d799bca838a0aa63ec2f41cf152a687675250b13047a42a7a71bbfe8b4d
Contents?: true
Size: 726 Bytes
Versions: 28
Compression:
Stored size: 726 Bytes
Contents
#!/usr/bin/env ruby -w # encoding: UTF-8 # # = FlexiTable_spec.rb -- PostRunner - Manage the data from your Garmin sport devices. # # Copyright (c) 2014 by Chris Schlaeger <cs@taskjuggler.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # require 'spec_helper' require 'postrunner/FlexiTable' describe PostRunner::FlexiTable do it 'should create a simple ASCII table' do t = PostRunner::FlexiTable.new do row(%w( a bb )) row(%w( ccc ddddd )) end ref = <<EOT +---+-----+ |a |bb | |ccc|ddddd| +---+-----+ EOT expect(t.to_s).to eq(ref) end end
Version data entries
28 entries across 28 versions & 1 rubygems