aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/html-scanner/text_node_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-08-17 22:51:13 -0300
committerRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-08-17 22:51:13 -0300
commitcdc00aba62ffb0f0af452f5152aafeb5e490962e (patch)
tree071ca4766dd07b9af34bbebf902c50a27c5c2b4d /actionview/test/template/html-scanner/text_node_test.rb
parentcc9091c3e719facd0f73c8ab425a5bb9a7d0a65b (diff)
parentc78da4d5c472f7254ed609ef753d7b1719732802 (diff)
downloadrails-cdc00aba62ffb0f0af452f5152aafeb5e490962e.tar.gz
rails-cdc00aba62ffb0f0af452f5152aafeb5e490962e.tar.bz2
rails-cdc00aba62ffb0f0af452f5152aafeb5e490962e.zip
Merge branch 'loofah'
Conflicts: Gemfile
Diffstat (limited to 'actionview/test/template/html-scanner/text_node_test.rb')
-rw-r--r--actionview/test/template/html-scanner/text_node_test.rb50
1 files changed, 0 insertions, 50 deletions
diff --git a/actionview/test/template/html-scanner/text_node_test.rb b/actionview/test/template/html-scanner/text_node_test.rb
deleted file mode 100644
index cbcb9e78f0..0000000000
--- a/actionview/test/template/html-scanner/text_node_test.rb
+++ /dev/null
@@ -1,50 +0,0 @@
-require 'abstract_unit'
-
-class TextNodeTest < ActiveSupport::TestCase
- def setup
- @node = HTML::Text.new(nil, 0, 0, "hello, howdy, aloha, annyeong")
- end
-
- def test_to_s
- assert_equal "hello, howdy, aloha, annyeong", @node.to_s
- end
-
- def test_find_string
- assert_equal @node, @node.find("hello, howdy, aloha, annyeong")
- assert_equal false, @node.find("bogus")
- end
-
- def test_find_regexp
- assert_equal @node, @node.find(/an+y/)
- assert_nil @node.find(/b/)
- end
-
- def test_find_hash
- assert_equal @node, @node.find(:content => /howdy/)
- assert_nil @node.find(:content => /^howdy$/)
- assert_equal false, @node.find(:content => "howdy")
- end
-
- def test_find_other
- assert_nil @node.find(:hello)
- end
-
- def test_match_string
- assert @node.match("hello, howdy, aloha, annyeong")
- assert_equal false, @node.match("bogus")
- end
-
- def test_match_regexp
- assert_not_nil @node, @node.match(/an+y/)
- assert_nil @node.match(/b/)
- end
-
- def test_match_hash
- assert_not_nil @node, @node.match(:content => "howdy")
- assert_nil @node.match(:content => /^howdy$/)
- end
-
- def test_match_other
- assert_nil @node.match(:hello)
- end
-end