<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,6 +2,6 @@ author: Kevin Clark
 summary: RJS Assertion Plugin
 homepage: http://glu.ttono.us
 plugin:
-version: 0.5
+version: 0.6
 license: MIT
 rails_version: 1.1.2+
\ No newline at end of file</diff>
      <filename>about.yml</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@ module Arts
   def assert_rjs(action, *args, &amp;block)
     respond_to?(&quot;assert_rjs_#{action}&quot;) ?
       send(&quot;assert_rjs_#{action}&quot;, *args) :
-      assert(lined_response.include?(create_generator.send(action, *args, &amp;block)), 
+      assert_response_contains(create_generator.send(action, *args, &amp;block), 
          generic_error(action, args))
   end
   
@@ -29,11 +29,11 @@ module Arts
           assert_match Regexp.new(&quot;new Insertion\.#{position.to_s.camelize}(.*#{item_id}.*,.*#{content.source}.*);&quot;),
                        @response.body
         when String
-          assert lined_response.include?(&quot;new Insertion.#{position.to_s.camelize}(\&quot;#{item_id}\&quot;, #{content});&quot;),
+          assert_response_contains(&quot;new Insertion.#{position.to_s.camelize}(\&quot;#{item_id}\&quot;, #{content});&quot;,
                  &quot;No insert_html call found for \n&quot; +
                  &quot;     position: '#{position}' id: '#{item_id}' \ncontent: \n&quot; +
                  &quot;#{content}\n&quot; +
-                 &quot;in response:\n#{lined_response}&quot;
+                 &quot;in response:\n#{@response.body}&quot;)
         else
           raise &quot;Invalid content type&quot;
       end
@@ -53,9 +53,9 @@ module Arts
           assert_match Regexp.new(&quot;Element.update(.*#{div}.*,.*#{content.source}.*);&quot;),
                        @response.body
         when String
-          assert lined_response.include?(&quot;Element.update(\&quot;#{div}\&quot;, #{content});&quot;), 
+          assert_response_contains(&quot;Element.update(\&quot;#{div}\&quot;, #{content});&quot;, 
                  &quot;No replace_html call found on div: '#{div}' and content: \n#{content}\n&quot; +
-                 &quot;in response:\n#{lined_response}&quot;
+                 &quot;in response:\n#{@response.body}&quot;)
         else
           raise &quot;Invalid content type&quot;
       end
@@ -74,9 +74,9 @@ module Arts
           assert_match Regexp.new(&quot;Element.replace(.*#{div}.*,.*#{content.source}.*);&quot;),
                        @response.body
         when String
-          assert lined_response.include?(&quot;Element.replace(\&quot;#{div}\&quot;, #{content});&quot;), 
+          assert_response_contains(&quot;Element.replace(\&quot;#{div}\&quot;, #{content});&quot;, 
                  &quot;No replace call found on div: '#{div}' and content: \n#{content}\n&quot; +
-                 &quot;in response:\n#{lined_response}&quot;
+                 &quot;in response:\n#{@response.body}&quot;)
         else
           raise &quot;Invalid content type&quot;
       end
@@ -94,6 +94,10 @@ module Arts
   
   protected
   
+  def assert_response_contains(str, message)
+     assert @response.body.to_s.index(str), message
+  end
+  
   def build_method_chain!(args)
     content = create_generator.send(:[], args.shift) # start $('some_id')....
     
@@ -110,17 +114,13 @@ module Arts
     content
   end
   
-  def lined_response
-    @response.body.split(&quot;\n&quot;)
-  end
-  
   def create_generator
     block = Proc.new { |*args| yield *args if block_given? } 
     JavaScriptGenerator.new self, &amp;block
   end
   
   def generic_error(action, args)
-    &quot;#{action} with args [#{args.join(&quot; &quot;)}] does not show up in response:\n#{lined_response}&quot;
+    &quot;#{action} with args [#{args.join(&quot; &quot;)}] does not show up in response:\n#{@response.body}&quot;
   end
   
   def extract_matchable_content(args)</diff>
      <filename>lib/arts.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c6325ec227e44700051385250d43448ccdcdbf7f</id>
    </parent>
  </parents>
  <author>
    <name>kevinc</name>
    <email>kevinc@fc021c06-de14-0410-8c5a-e664d767796e</email>
  </author>
  <url>http://github.com/richpoirier/arts/commit/305478855d1a9b2158feb5dc26bbf123bd00cadc</url>
  <id>305478855d1a9b2158feb5dc26bbf123bd00cadc</id>
  <committed-date>2007-01-29T00:22:27-08:00</committed-date>
  <authored-date>2007-01-29T00:22:27-08:00</authored-date>
  <message>Update ARTS for 1.2, removing lined response</message>
  <tree>bc3bb02f6408bd2bdaff11dcb0eec4d49830de6f</tree>
  <committer>
    <name>kevinc</name>
    <email>kevinc@fc021c06-de14-0410-8c5a-e664d767796e</email>
  </committer>
</commit>
