Sha256: e8efd0e0864b59828754621ba660c3c77a717701c92733e2aa0d35ed3647b956

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
alf-0.9.3 spec/unit/text/test_row.rb