require_relative '../../spec_helper' require 'cgi' describe "CGI.pretty when passed html" do it "indents the passed html String with two spaces" do CGI.pretty("").should == <<-EOS EOS end end describe "CGI.pretty when passed html, indentation_unit" do it "indents the passed html String with the passed indentation_unit" do CGI.pretty("", "\t").should == <<-EOS \t \t EOS end end