<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -32,10 +32,10 @@ class ControllerGenerator &lt; Genosaurus
         rf.each do |line|
           if line.match(&quot;Mack::Routes.build&quot;)
             x = line.match(/\|(.+)\|/).captures
-            line &lt;&lt; &quot;\n  # Added by rake generate:controller name=#{param(:name)} actions=#{param(:actions)}\n&quot;
-            line &lt;&lt; &quot;\n  r.with_options(:controller =&gt; :#{@name_plural}) do |map|\n&quot;
+            line &lt;&lt; &quot;\n  # Added by rake generate:controller name=#{param(:name)} actions=#{param(:actions)}&quot;
+            line &lt;&lt; &quot;\n  r.with_options(:controller =&gt; :#{@name_plural}) do |map|&quot;
             @actions.each do |action|
-              line &lt;&lt; &quot;\n    map.#{@name_plural}_#{action}_url \&quot;/#{@name_plural}#{action == &quot;index&quot; ? &quot;&quot; : &quot;/#{action}&quot;}\&quot;, :action =&gt; :#{action}&quot;
+              line &lt;&lt; &quot;\n    map.#{@name_plural}_#{action} \&quot;/#{@name_plural}#{action == &quot;index&quot; ? &quot;&quot; : &quot;/#{action}&quot;}\&quot;, :action =&gt; :#{action}&quot;
             end
             line &lt;&lt; &quot;\n  end # #{@name_plural}\n&quot;
           end</diff>
      <filename>lib/mack/generators/controller_generator/controller_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,11 @@ describe &lt;%= @name_plural_camel %&gt;Controller do
   &lt;% @actions.each do |action| %&gt;
   describe &quot;&lt;%= action %&gt;&quot; do
     
-    it &quot;should do something :)&quot;
+    it &quot;should get the &lt;%= action %&gt; action&quot; do
+      get &lt;%= @name_plural %&gt;_&lt;%= action %&gt;_url
+      response.should be_successful
+      response.body.should match(/&lt;%= @name_plural_camel %&gt;Controller#&lt;%= action %&gt;/)
+    end
     
   end
   &lt;% end %&gt;</diff>
      <filename>lib/mack/generators/controller_generator/templates/test/controllers/rspec.rb.template</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,9 @@ class &lt;%= @name_plural_camel %&gt;ControllerTest &lt; Test::Unit::TestCase
   end
   &lt;% @actions.each do |action| %&gt;
   def test_&lt;%= action %&gt;
-    assert true
+    get &lt;%= @name_plural %&gt;_&lt;%= action %&gt;_url
+    assert response.successful?
+    assert_match /&lt;%= @name_plural_camel %&gt;Controller#&lt;%= action %&gt;/, response.body
   end
   &lt;% end %&gt;
 end
\ No newline at end of file</diff>
      <filename>lib/mack/generators/controller_generator/templates/test/controllers/test_case.rb.template</filename>
    </modified>
    <modified>
      <diff>@@ -4,13 +4,21 @@ describe ZoosController do
   
   describe &quot;index&quot; do
     
-    it &quot;should do something :)&quot;
+    it &quot;should get the index action&quot; do
+      get zoos_index_url
+      response.should be_successful
+      response.body.should match(/ZoosController#index/)
+    end
     
   end
   
   describe &quot;show&quot; do
     
-    it &quot;should do something :)&quot;
+    it &quot;should get the show action&quot; do
+      get zoos_show_url
+      response.should be_successful
+      response.body.should match(/ZoosController#show/)
+    end
     
   end
   </diff>
      <filename>test/fixtures/zoos_controller_spec_with_actions.rb.fixture</filename>
    </modified>
    <modified>
      <diff>@@ -7,11 +7,15 @@ class ZoosControllerTest &lt; Test::Unit::TestCase
   end
   
   def test_index
-    assert true
+    get zoos_index_url
+    assert response.successful?
+    assert_match /ZoosController#index/, response.body
   end
   
   def test_show
-    assert true
+    get zoos_show_url
+    assert response.successful?
+    assert_match /ZoosController#show/, response.body
   end
   
 end</diff>
      <filename>test/fixtures/zoos_controller_test_with_actions.rb.fixture</filename>
    </modified>
    <modified>
      <diff>@@ -45,8 +45,8 @@ describe ControllerGenerator do
     ControllerGenerator.run(&quot;name&quot; =&gt; &quot;zoo&quot;, &quot;actions&quot; =&gt; &quot;index,show&quot;)
     File.read(@route_file_loc).should match(/  # Added by rake generate:controller name=zoo actions=index,show/)
     File.read(@route_file_loc).should match(/  r.with_options\(:controller =&gt; :zoos\) do \|map\|/)
-    File.read(@route_file_loc).should match(/    map.zoos_index_url &quot;\/zoos&quot;, :action =&gt; :index/)
-    File.read(@route_file_loc).should match(/    map.zoos_show_url &quot;\/zoos\/show&quot;, :action =&gt; :show/)
+    File.read(@route_file_loc).should match(/    map.zoos_index &quot;\/zoos&quot;, :action =&gt; :index/)
+    File.read(@route_file_loc).should match(/    map.zoos_show &quot;\/zoos\/show&quot;, :action =&gt; :show/)
     File.read(@route_file_loc).should match(/  end # zoos/)
   end
   </diff>
      <filename>test/unit/generators/controller_generator_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9502e60855e78a9c9319e45ce7a75162a92d7cb1</id>
    </parent>
  </parents>
  <author>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </author>
  <url>http://github.com/markbates/mack/commit/fc72954d683d67e43c90c66274ba4d2ef77de7dd</url>
  <id>fc72954d683d67e43c90c66274ba4d2ef77de7dd</id>
  <committed-date>2008-08-05T10:35:48-07:00</committed-date>
  <authored-date>2008-08-05T10:35:48-07:00</authored-date>
  <message>ControllerGenerator now generates 'good' default tests. [#25]</message>
  <tree>ea39bad5c28cfbcad8d88a17143c83aa90faedc3</tree>
  <committer>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </committer>
</commit>
