~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/actionpack/test/controller/html-scanner/cdata_node_test.rb

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
require 'abstract_unit'
2
 
 
3
 
class CDATANodeTest < Test::Unit::TestCase
4
 
  def setup
5
 
    @node = HTML::CDATA.new(nil, 0, 0, "<p>howdy</p>")
6
 
  end
7
 
 
8
 
  def test_to_s
9
 
    assert_equal "<![CDATA[<p>howdy</p>]]>", @node.to_s
10
 
  end
11
 
 
12
 
  def test_content
13
 
    assert_equal "<p>howdy</p>", @node.content
14
 
  end
15
 
end