Skip to content

Commit

Permalink
moving tests around and fixing up the manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Nov 24, 2009
1 parent 76ed795 commit 819a62c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Manifest.txt
Expand Up @@ -235,7 +235,6 @@ test/html/test_node_encoding.rb
test/test_convert_xpath.rb
test/test_css_cache.rb
test/test_encoding_handler.rb
test/test_gc.rb
test/test_memory_leak.rb
test/test_nokogiri.rb
test/test_reader.rb
Expand Down Expand Up @@ -263,6 +262,7 @@ test/xml/test_namespace.rb
test/xml/test_node.rb
test/xml/test_node_attributes.rb
test/xml/test_node_encoding.rb
test/xml/test_node_reparenting.rb
test/xml/test_node_set.rb
test/xml/test_parse_options.rb
test/xml/test_processing_instruction.rb
Expand Down
15 changes: 0 additions & 15 deletions test/test_gc.rb

This file was deleted.

10 changes: 10 additions & 0 deletions test/test_memory_leak.rb
Expand Up @@ -4,6 +4,16 @@ class TestMemoryLeak < Nokogiri::TestCase

if ENV['NOKOGIRI_GC'] # turning these off by default for now

def test_dont_hurt_em_why
content = File.open("#{File.dirname(__FILE__)}/files/dont_hurt_em_why.xml").read
ndoc = Nokogiri::XML(content)
2.times do
info = ndoc.search('status text').first.inner_text
url = ndoc.search('user name').first.inner_text
GC.start
end
end

def test_for_memory_leak
begin
# we don't use Dike in any tests, but requiring it has side effects
Expand Down

0 comments on commit 819a62c

Please sign in to comment.