2018-03-04 15:09:32 +00:00
|
|
|
require_relative '../../../spec_helper'
|
2017-05-07 12:04:49 +00:00
|
|
|
require 'cgi'
|
2018-03-04 15:09:32 +00:00
|
|
|
require_relative 'fixtures/common'
|
2017-05-07 12:04:49 +00:00
|
|
|
|
|
|
|
describe "CGI::HtmlExtension#br" do
|
|
|
|
before :each do
|
|
|
|
@html = CGISpecs.cgi_new
|
|
|
|
end
|
|
|
|
|
|
|
|
describe "when each HTML generation" do
|
|
|
|
it "returns the doctype declaration for HTML3" do
|
|
|
|
CGISpecs.cgi_new("html3").br.should == "<BR>"
|
|
|
|
end
|
|
|
|
|
|
|
|
it "returns the doctype declaration for HTML4" do
|
|
|
|
CGISpecs.cgi_new("html4").br.should == "<BR>"
|
|
|
|
end
|
|
|
|
it "returns the doctype declaration for the Transitional version of HTML4" do
|
|
|
|
CGISpecs.cgi_new("html4Tr").br.should == "<BR>"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|