Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.38 kB
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
Jump to Line
Something went wrong with that request. Please try again.