Sha256: ebdbd1a001640831c0abefd364fded7433fda0df2d36b21f5c22fcb45b31d66a
Contents?: true
Size: 658 Bytes
Versions: 7
Compression:
Stored size: 658 Bytes
Contents
require 'spec_helper' module Alf class Text::Renderer describe Row do let(:row){ Row.new(values) } describe "when single values are used only" do let(:values){ [ 10/3.0, true ] } specify "rendering_lines" do row.rendering_lines.should == ["| 3.333 | true |"] row.rendering_lines([10,5]).should == ["| 3.333 | true |"] end end describe "when multiple-line values are used" do let(:values){ [ 10/3.0, [1, 2, 3] ] } specify "rendering_lines" do row.rendering_lines.should == ["| 3.333 | [1, 2, 3] |"] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems