<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,32 +3,41 @@ require File.join(File.dirname(__FILE__), '..', '..', '..', '..', 'spec_helper')
 module Arel
   describe Sql::Engine do
     before do
-      @relation = Table.new(:users)
+      @users = Table.new(:users)
+      @users.delete
     end
 
     describe &quot;CRUD&quot; do
       describe &quot;#create&quot; do
         it &quot;inserts into the relation&quot; do
-          @relation.insert @relation[:name] =&gt; &quot;Bryan&quot;
+          @users.insert @users[:name] =&gt; &quot;Bryan&quot;
+          @users.first[@users[:name]].should == &quot;Bryan&quot;
         end
       end
 
       describe &quot;#read&quot; do
         it &quot;reads from the relation&quot; do
-          @relation.each do |row|
+          @users.insert @users[:name] =&gt; &quot;Bryan&quot;
+
+          @users.each do |row|
+            row[@users[:name]].should == &quot;Bryan&quot;
           end
         end
       end
 
       describe &quot;#update&quot; do
         it &quot;updates the relation&quot; do
-          @relation.update @relation[:name] =&gt; &quot;Bryan&quot;
+          @users.insert @users[:name] =&gt; &quot;Nick&quot;
+          @users.update @users[:name] =&gt; &quot;Bryan&quot;
+          @users.first[@users[:name]].should == &quot;Bryan&quot;
         end
       end
 
       describe &quot;#delete&quot; do
         it &quot;deletes from the relation&quot; do
-          @relation.delete
+          @users.insert @users[:name] =&gt; &quot;Bryan&quot;
+          @users.delete
+          @users.first.should == nil
         end
       end
     end</diff>
      <filename>spec/arel/engines/sql/unit/engine_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eede6962a8c1ee86b49907c1937fb0e3a38cf819</id>
    </parent>
  </parents>
  <author>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </author>
  <url>http://github.com/nkallen/arel/commit/976fb01a5dd812bcb50cc7b576941c76657908f9</url>
  <id>976fb01a5dd812bcb50cc7b576941c76657908f9</id>
  <committed-date>2009-05-17T22:50:50-07:00</committed-date>
  <authored-date>2009-05-17T22:50:50-07:00</authored-date>
  <message>Expand sql engine CRUD specs</message>
  <tree>fb79b6867535bbb6487677d1c6bcf00905c2925a</tree>
  <committer>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </committer>
</commit>
