Sha256: 8b0eba62bc82536d3bbcddbe4eb3e278294a1a3e2648b0643b90f6a2dc1dcb2c

Contents?: true

Size: 380 Bytes

Versions: 15

Compression:

Stored size: 380 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe String do
  describe "#align" do
    it "should center" do
      'foo'.align(:center, 10).should == '   foo    '
    end
    
    it "should align left" do
      'foo'.align(:left, 10).should == 'foo       '
    end
  
    it "should align right" do
      'foo'.align(:right, 10).should == '       foo'
    end
  end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
galileo-0.2.1 lib/terminal-table/spec/core_ext_spec.rb
galileo-0.2.0 lib/terminal-table/spec/core_ext_spec.rb
galileo-0.1.1 lib/terminal-table/spec/core_ext_spec.rb
galileo-0.1.0 lib/terminal-table/spec/core_ext_spec.rb
cft_smartcloud-0.3.3 lib/terminal-table-1.4.4/spec/core_ext_spec.rb
cft_smartcloud-0.3.2 lib/terminal-table-1.4.4/spec/core_ext_spec.rb
terminal-table-1.4.5 spec/core_ext_spec.rb
cft_smartcloud-0.3.1 lib/terminal-table-1.4.4/spec/core_ext_spec.rb
cft_smartcloud-0.3.0 lib/terminal-table-1.4.4/spec/core_ext_spec.rb
terminal-table-1.4.4 spec/core_ext_spec.rb
terminal-table-1.4.3 spec/core_ext_spec.rb
terminal-table-1.4.2 spec/core_ext_spec.rb
terminal-table-1.4.1 spec/core_ext_spec.rb
terminal-table-1.4.0 spec/core_ext_spec.rb
terminal-table-1.3.0 spec/core_ext_spec.rb