<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -88,8 +88,7 @@ Rake::RDocTask.new(:docs) do |rd|
   rd.options &lt;&lt; &quot;-t #{title}&quot;
 end
 
-desc &quot;Run all specs&quot;
-task &quot;spec2&quot; do
-  require &quot;lib/webrat/test/run_specs&quot;
-  run_specs(Dir[&quot;#{Dir.pwd}/spec//**/*_spec.rb&quot;])
+desc &quot;Run specs using jruby&quot;
+task &quot;spec:jruby&quot; do
+  system &quot;jruby -S rake spec&quot;
 end
\ No newline at end of file</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -44,7 +44,7 @@ module Webrat
     end
     
     def text
-      @element.text
+      @element.inner_text
     end
     
   protected</diff>
      <filename>lib/webrat/core/link.rb</filename>
    </modified>
    <modified>
      <diff>@@ -84,13 +84,7 @@ require File.dirname(__FILE__) / &quot;run_spec&quot;
 
 # Runs specs in all files matching the file pattern.
 #
-# ==== Parameters
-# globs&lt;String, Array[String]&gt;:: File patterns to look for.
-# spec_cmd&lt;~to_s&gt;:: The spec command. Defaults to &quot;spec&quot;.
-# run_opts&lt;String&gt;:: Options to pass to spec commands, for instance,
-#                    if you want to use profiling formatter.
-# except&lt;Array[String]&gt;:: File paths to skip.
-def run_specs(globs, spec_cmd='spec', run_opts = &quot;-c&quot;, except = [])
+def run_specs(globs)
   require &quot;optparse&quot;
   require &quot;spec&quot;
   globs = globs.is_a?(Array) ? globs : [globs]</diff>
      <filename>lib/webrat/test/run_specs.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>10d5d7695f2754637912608aa2707d65dae9602b</id>
    </parent>
  </parents>
  <author>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </author>
  <url>http://github.com/brynary/webrat/commit/22d5b91dd4627701a3413ad56c763e4f689aae7e</url>
  <id>22d5b91dd4627701a3413ad56c763e4f689aae7e</id>
  <committed-date>2008-11-18T18:09:48-08:00</committed-date>
  <authored-date>2008-11-18T18:09:48-08:00</authored-date>
  <message>Add spec:jruby task for running spec suite with jruby</message>
  <tree>0f024d1b6d03f25d283afdb6a7d0c2cb50bd8e2b</tree>
  <committer>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </committer>
</commit>
