<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>log/httperf_benchmark.log.txt</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -7,6 +7,7 @@ class PodcastsController &lt; ApplicationController
     @podcast = Podcast.find_by_permalink(name.to_s)
     if @podcast
       render :action =&gt; &quot;show&quot;, :podcast =&gt; @podcast
+      cache_page if ActionController::Base.perform_caching
     else
       render :action =&gt; &quot;notfound&quot;
     end
@@ -18,7 +19,7 @@ class PodcastsController &lt; ApplicationController
   end
   
   def show
- 
+     
   end
 
   def notfound</diff>
      <filename>app/controllers/podcasts_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,7 @@ class PodcastSweeper &lt; ActionController::Caching::Sweeper
   def expire_cache_for(record)
     cache_dir = ActionController::Base.page_cache_directory
     FileUtils.rm_r(Dir.glob(&quot;#{cache_dir}/index.html&quot;)) rescue Errno::ENOENT
+    FileUtils.rm_r(Dir.glob(&quot;#{cache_dir}/podcast/*.*&quot;)) rescue Errno::ENOENT
   end
 end
 </diff>
      <filename>app/sweepers/podcast_sweeper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,4 +17,4 @@
 	&lt;% end %&gt;
 &lt;/ul&gt;
 
-&lt;%= @podcast.content %&gt;
\ No newline at end of file
+&lt;%= @podcast.content %&gt;</diff>
      <filename>app/views/podcasts/show.text</filename>
    </modified>
    <modified>
      <diff>@@ -9,15 +9,10 @@ class PodcastsControllerTest &lt; ActionController::TestCase
     get :index
     assert_equal all_podcasts, assigns(:podcasts)
   end
-  # N&#227;o necess&#225;rio ap&#243;s refatora&#231;&#245;es 
-  #
-  #def test_show
-   # get :show, :id =&gt; 1
-    #assert_equal 1, assigns(:podcast).id
-  #end
   
   def test_method_missing_when_permalink_is_not_found
-    assert_raise(ActionController::UnknownAction) { get :not_found }
+    get &quot;podcast12312432132131&quot;
+    assert_template &quot;notfound&quot; 
   end
   
   def test_method_missing_when_permalink_is_found</diff>
      <filename>test/functional/podcasts_controller_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4493e03004d3acf9177084077ef1b56228511d91</id>
    </parent>
  </parents>
  <author>
    <name>Thiago Pradi</name>
    <email>tchandy@gmail.com</email>
  </author>
  <url>http://github.com/tapajos/podcast/commit/c4225733257514db2361b2b946f884b45c6724cb</url>
  <id>c4225733257514db2361b2b946f884b45c6724cb</id>
  <committed-date>2008-09-02T14:14:33-07:00</committed-date>
  <authored-date>2008-09-02T14:14:33-07:00</authored-date>
  <message>Refatorado testes, Adicionado Cache na URL individual dos podcasts e atualizado Sweeper</message>
  <tree>695b5a2de1551f804a6c92406861740fb52d9b43</tree>
  <committer>
    <name>Thiago Pradi</name>
    <email>tchandy@gmail.com</email>
  </committer>
</commit>
