<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -44,6 +44,13 @@ module Mephisto
         post &quot;/admin/resources/update&quot;, :filename =&gt; resource.basename.to_s, :data =&gt; data
         assert_equal 200, status, &quot;Updating resource #{resource.basename}&quot;
       end
+
+      def remove_resource(resource)
+        post &quot;/admin/resources/remove&quot;, :filename =&gt; resource.basename.to_s
+        assert_equal 200, status, &quot;Removing resource #{resource.basename}&quot;
+      end
+
+      # TODO upload_resource
       
       def update_template(template, data)
         post &quot;/admin/templates/update&quot;, :filename =&gt; template.basename.to_s, :data =&gt; data
@@ -106,4 +113,4 @@ module Mephisto
         end
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>test/actor.rb</filename>
    </modified>
    <modified>
      <diff>@@ -343,7 +343,7 @@ class CachingTest &lt; ActionController::IntegrationTest
     assert_cached feed_url_for(:home)
   end
 
-  def test_should_expire_resource
+  def test_should_expire_resource_when_updating_resource
     visitor = visit
     assert_caches_page '/images/rails-logo.png' do
       visitor.read '/images/rails-logo.png'
@@ -356,6 +356,21 @@ class CachingTest &lt; ActionController::IntegrationTest
     end
   end
 
+  def test_should_expire_resource_when_removing_resource
+    visitor = visit
+    assert_caches_page '/images/rails-logo.png' do
+      visitor.read '/images/rails-logo.png'
+    end
+    
+    assert_expires_page 'images/rails-logo.png' do
+      login_as :quentin do |writer|
+        writer.remove_resource sites(:first).resources['rails-logo.png']
+      end
+    end
+  end
+
+  # TODO test_should_expire_resource_when_uploading_resource
+
   def test_should_not_cache_searches
     visitor = visit
     assert_expires_page &quot;/search&quot; do
@@ -403,4 +418,4 @@ class CachingTest &lt; ActionController::IntegrationTest
         end
       end
     end
-end
\ No newline at end of file
+end</diff>
      <filename>test/integration/caching_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6b4d31a00b08f41f9251be2793bd4a059da0c8da</id>
    </parent>
  </parents>
  <author>
    <name>Peter Suschlik</name>
    <email>peter@suschlik.de</email>
  </author>
  <url>http://github.com/harryseldon/mephisto/commit/14dc7e9b27ceaafa8b26627eaf20e6bafa80b3b1</url>
  <id>14dc7e9b27ceaafa8b26627eaf20e6bafa80b3b1</id>
  <committed-date>2008-10-27T13:37:08-07:00</committed-date>
  <authored-date>2008-10-27T13:37:08-07:00</authored-date>
  <message>Test cache expiration when removing a resource.
TODO: upload resource</message>
  <tree>4b15ef94324300236783ffaf3dbf4af6c00a4df6</tree>
  <committer>
    <name>Peter Suschlik</name>
    <email>peter@suschlik.de</email>
  </committer>
</commit>
