require 'rubygems'
require 'test/unit'
require File.dirname(__FILE__) + '/../lib/meta_tag_helper'
require 'action_view/helpers/tag_helper'
class MetaTagTest < Test::Unit::TestCase
include ActionView::Helpers::TagHelper
include MetaTagHelper
def test_meta_tag
output = meta_tag('keywords', 'cat, mouse, squirrel')
assert_equal_with_value_pairs %(), output
output = meta_tag('content-type', 'text/html', true)
assert_equal_with_value_pairs %(), output
end
def test_xhtml_doctype
assert_match /transitional/, xhtml_doctype
%w(transitional strict frameset).each do |type|
assert_match type, xhtml_doctype(type.to_sym)
end
end
def test_html_tag
assert_match /lang="en"/, html_tag
assert_match /lang="de"/, html_tag(:lang => 'de')
end
def test_end_html_tag
assert_equal "