Sha256: 0c2e707d079e0d0831e3ae7456a9b8a75537a95bf69c2082928f573c3a9ad839
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
require 'cgi' require File.expand_path('../fixtures/common', __FILE__) describe "CGI::HtmlExtension#doctype" do describe "when each HTML generation" do it "returns the doctype declaration for HTML3" do expect = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">' CGISpecs.cgi_new("html3").doctype.should == expect end it "returns the doctype declaration for HTML4" do expect = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">' CGISpecs.cgi_new("html4").doctype.should == expect end it "returns the doctype declaration for the Frameset version of HTML4" do expect = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">' CGISpecs.cgi_new("html4Fr").doctype.should == expect end it "returns the doctype declaration for the Transitional version of HTML4" do expect = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">' CGISpecs.cgi_new("html4Tr").doctype.should == expect end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-cgi-1.0.0 | spec/htmlextension/doctype_spec.rb |
rubysl-cgi-2.0.1 | spec/htmlextension/doctype_spec.rb |
rubysl-cgi-2.0.0 | spec/htmlextension/doctype_spec.rb |