Permalink
Browse files

reorganizing test helper code.

  • Loading branch information...
1 parent 9023e92 commit d109ca1de35a0ca1c0c73f31ec9b0691f55fb1e4 @flavorjones flavorjones committed May 27, 2009
Showing with 6 additions and 6 deletions.
  1. +6 −0 test/helper.rb
  2. +0 −6 test/test_basic.rb
View
6 test/helper.rb
@@ -1,2 +1,8 @@
require 'test/unit'
require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "dryopteris"))
+
+if defined? Nokogiri::VERSION_INFO
+ puts "=> running with Nokogiri #{Nokogiri::VERSION_INFO.inspect}"
+else
+ puts "=> running with Nokogiri #{Nokogiri::VERSION} / libxml #{Nokogiri::LIBXML_PARSER_VERSION}"
+end
View
6 test/test_basic.rb
@@ -1,11 +1,5 @@
require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
-if defined? Nokogiri::VERSION_INFO
- puts "=> running with Nokogiri #{Nokogiri::VERSION_INFO.inspect}"
-else
- puts "=> running with Nokogiri #{Nokogiri::VERSION} / libxml #{Nokogiri::LIBXML_PARSER_VERSION}"
-end
-
class TestBasic < Test::Unit::TestCase
def test_nil

0 comments on commit d109ca1

Please sign in to comment.