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