Sha256: 89f733e4d1c54b632e62b77ece02855a0f2a87b167813332259699b4a109162f
Contents?: true
Size: 666 Bytes
Versions: 3
Compression:
Stored size: 666 Bytes
Contents
require 'spec_helper' module Alf class Renderer::Text 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.3333333 | true |"] row.rendering_lines([10,5]).should == ["| 3.3333333 | 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.3333333 | [1, 2, 3] |"] end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alf-0.9.2 | spec/unit/renderer/text/test_row.rb |
alf-0.9.1 | spec/unit/renderer/text/test_row.rb |
alf-0.9.0 | spec/renderer/text/row_spec.rb |