1 require File.dirname(__FILE__) + '/../../spec_helper'
4 describe "CGI.pretty when passed html" do
5 it "indents the passed html String with two spaces" do
6 CGI.pretty("<HTML><BODY></BODY></HTML>").should == <<-EOS
15 describe "CGI.pretty when passed html, indentation_unit" do
16 it "indents the passed html String with the passed indentation_unit" do
17 CGI.pretty("<HTML><BODY></BODY></HTML>", "\t").should == <<-EOS