<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>features/admin_undo.feature</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -6,7 +6,7 @@
   &lt;td&gt;
     &lt;%= link_to(image_tag('silk/pencil.png', :alt =&gt; 'edit'), admin_comment_path(comment)) %&gt;
     &lt;% form_for(:comment, comment, :url =&gt; admin_comment_path(comment), :html =&gt; {:class =&gt; 'delete-item', :method =&gt; :delete}) do |form| -%&gt;
-      &lt;%= image_submit_tag(&quot;silk/delete.png&quot;) %&gt;
+      &lt;%= image_submit_tag(&quot;silk/delete.png&quot;, :alt =&gt; &quot;Delete Comment&quot;) %&gt;
     &lt;% end -%&gt;
   &lt;/td&gt;
 &lt;/tr&gt;</diff>
      <filename>app/views/admin/comments/_comment.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,28 @@ end
 
 Then /a RuntimeError is thrown when I press &quot;(.*)&quot;/ do |button|
   lambda {
-    clicks_button(button)
+    click_button(button)
   }.should raise_error
 end
+
+Then /^the comment exists$/ do
+  Comment.count.should == 2
+end
+
+Given /^the following comments? exists:$/ do |comment_table|
+  comment_table.hashes.each do |hash|
+    Factory(:comment, hash)
+  end
+end
+
+Given /^a comment exists with attributes:$/ do |comment_table|
+  comment_table.hashes.each do |hash|
+    Comment.find(:first, :conditions =&gt; hash).should_not be_nil
+  end
+end
+
+Given /^a comment does not exist with attributes:$/ do |comment_table|
+  comment_table.hashes.each do |hash|
+    Comment.find(:first, :conditions =&gt; hash).should be_nil
+  end
+end</diff>
      <filename>features/steps/admin.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,11 +2,11 @@
 # http://github.com/brynary/webrat
 
 When /^I press &quot;(.*)&quot;$/ do |button|
-  clicks_button(button)
+  click_button(button)
 end
 
 When /^I follow &quot;(.*)&quot;$/ do |link|
-  clicks_link(link)
+  click_link(link)
 end
 
 When /^I fill in &quot;(.*)&quot; with &quot;(.*)&quot;$/ do |field, value|
@@ -18,7 +18,7 @@ When /^I check &quot;(.*)&quot;$/ do |field|
 end
 
 When /^I go to (.*)$/ do |page|
-  visits case page
+  visit case page
   when &quot;the home page&quot;
     &quot;/&quot;
   else</diff>
      <filename>features/steps/common_webrat.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 # Sets up the Rails environment for Cucumber
 ENV[&quot;RAILS_ENV&quot;] = &quot;test&quot;
 require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
-require 'webrat'
+require 'webrat/rails'
 require 'cucumber/rails/world'
 Cucumber::Rails.use_transactional_fixtures
 </diff>
      <filename>features/steps/env.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>feef785a7e31999400780d462d54c683d1d4fce5</id>
    </parent>
  </parents>
  <author>
    <name>Xavier Shay</name>
    <email>xavier@rhnh.net</email>
  </author>
  <url>http://github.com/antonjenkins/enki/commit/0e47ab95a3b4312459c3b38634cf08d5cb0d6de5</url>
  <id>0e47ab95a3b4312459c3b38634cf08d5cb0d6de5</id>
  <committed-date>2008-12-20T17:54:17-08:00</committed-date>
  <authored-date>2008-12-20T17:54:17-08:00</authored-date>
  <message>Undo delete comment feature</message>
  <tree>a6be0caa1ffea5b9b6f89b141f76c06e31488823</tree>
  <committer>
    <name>Xavier Shay</name>
    <email>xavier@rhnh.net</email>
  </committer>
</commit>
