Sha256: 6c175948f9834461b1d85d7b4b482f6df2d6117bcd598bf0036a6003da33cb80

Contents?: true

Size: 658 Bytes

Versions: 4

Compression:

Stored size: 658 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.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

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-io/renderer/text/test_row.rb
alf-core-0.14.0 spec/unit/alf-io/renderer/text/test_row.rb
alf-core-0.13.1 spec/unit/alf-io/renderer/text/test_row.rb
alf-core-0.13.0 spec/unit/alf-io/renderer/text/test_row.rb