public
Description: Webrat - Ruby Acceptance Testing for Web applications
Homepage: http://gitrdoc.com/brynary/webrat/tree/master/
Clone URL: git://github.com/brynary/webrat.git
Fixing require statement for Nokogiri on JRuby
brynary (author)
Sun Dec 28 21:36:53 -0800 2008
commit  3d522a476a373edcc637e849c75fdd55d0a56dad
tree    715fe0718ffe3d59395965de564437bc2de1f156
parent  6d5205b7b761e4280a3280c868d9c1df3cc8bbd5
...
12
13
14
 
 
 
 
15
16
17
18
19
20
21
22
23
24
...
12
13
14
15
16
17
18
19
 
 
20
21
22
 
23
24
25
0
@@ -12,13 +12,14 @@ module Webrat
0
   def self.require_xml
0
     gem "nokogiri", ">= 1.1.0"
0
     
0
+    # We need Nokogiri's CSS to XPath support, even if using
0
+    # REXML and Hpricot for parsing and searching
0
+    require "nokogiri"
0
+    
0
     if on_java?
0
-      # We need Nokogiri's CSS to XPath support, even if using REXML and Hpricot for parsing and searching
0
-      require "nokogiri/css"
0
       require "hpricot"
0
       require "rexml/document"
0
     else
0
-      require "nokogiri"
0
       require "webrat/core/nokogiri"
0
     end
0
   end

Comments