<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/fixtures/zoos_controller_spec.rb.fixture</filename>
    </added>
    <added>
      <filename>test/fixtures/zoos_controller_spec_with_actions.rb.fixture</filename>
    </added>
    <added>
      <filename>test/fixtures/zoos_controller_test.rb.fixture</filename>
    </added>
    <added>
      <filename>test/fixtures/zoos_controller_test_with_actions.rb.fixture</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,11 @@
 require File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;spec_helper.rb&quot;)
 
 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;
+    
+  end
+  &lt;% end %&gt;
 end
\ No newline at end of file</diff>
      <filename>lib/mack/generators/controller_generator/templates/test/controllers/rspec.rb.template</filename>
    </modified>
    <modified>
      <diff>@@ -5,5 +5,9 @@ class &lt;%= @name_plural_camel %&gt;ControllerTest &lt; Test::Unit::TestCase
   def test_truth
     assert true
   end
-  
+  &lt;% @actions.each do |action| %&gt;
+  def test_&lt;%= action %&gt;
+    assert true
+  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>@@ -55,20 +55,38 @@ describe ControllerGenerator do
   
   it &quot;should generate a Test::Unit::TestCase test if using the Test::Unit::TestCase framework&quot; do
     temp_app_config(&quot;mack::testing_framework&quot; =&gt; &quot;test_case&quot;) do
-      file = File.join(Mack.root, &quot;test&quot;, &quot;helpers&quot;, &quot;controllers&quot;, &quot;zoos_controller_helper_test.rb&quot;)
+      file = File.join(Mack.root, &quot;test&quot;, &quot;controllers&quot;, &quot;zoos_controller_test.rb&quot;)
       File.should_not be_exists(file)
       ControllerGenerator.run(&quot;name&quot; =&gt; &quot;zoo&quot;)
       File.should be_exists(file)
-      File.read(file).should == fixture(&quot;zoos_controller_helper_test.rb&quot;)
+      File.read(file).should == fixture(&quot;zoos_controller_test.rb&quot;)
     end
   end
   
   it &quot;should generate a RSpec test if using the RSpec framework&quot; do
-    file = File.join(Mack.root, &quot;test&quot;, &quot;helpers&quot;, &quot;controllers&quot;, &quot;zoos_controller_helper_spec.rb&quot;)
+    file = File.join(Mack.root, &quot;test&quot;, &quot;controllers&quot;, &quot;zoos_controller_spec.rb&quot;)
     File.should_not be_exists(file)
     ControllerGenerator.run(&quot;name&quot; =&gt; &quot;zoo&quot;)
     File.should be_exists(file)
-    File.read(file).should == fixture(&quot;zoos_controller_helper_spec.rb&quot;)
+    File.read(file).should == fixture(&quot;zoos_controller_spec.rb&quot;)
+  end
+  
+  it &quot;should generate a Test::Unit::TestCase test if using the Test::Unit::TestCase framework with optional actions&quot; do
+    temp_app_config(&quot;mack::testing_framework&quot; =&gt; &quot;test_case&quot;) do
+      file = File.join(Mack.root, &quot;test&quot;, &quot;controllers&quot;, &quot;zoos_controller_test.rb&quot;)
+      File.should_not be_exists(file)
+      ControllerGenerator.run(&quot;name&quot; =&gt; &quot;zoo&quot;, &quot;actions&quot; =&gt; &quot;index,show&quot;)
+      File.should be_exists(file)
+      File.read(file).should == fixture(&quot;zoos_controller_test_with_actions.rb&quot;)
+    end
+  end
+  
+  it &quot;should generate a RSpec test if using the RSpec framework with optional actions&quot; do
+    file = File.join(Mack.root, &quot;test&quot;, &quot;controllers&quot;, &quot;zoos_controller_spec.rb&quot;)
+    File.should_not be_exists(file)
+    ControllerGenerator.run(&quot;name&quot; =&gt; &quot;zoo&quot;, &quot;actions&quot; =&gt; &quot;index,show&quot;)
+    File.should be_exists(file)
+    File.read(file).should == fixture(&quot;zoos_controller_spec_with_actions.rb&quot;)
   end
   
 end
\ No newline at end of file</diff>
      <filename>test/unit/generators/controller_generator_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>939b76d6a186ceecd1644c8ca3da63466433f8cd</id>
    </parent>
  </parents>
  <author>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </author>
  <url>http://github.com/markbates/mack/commit/32524881c1f10c595d6d918a618284eba6a63969</url>
  <id>32524881c1f10c595d6d918a618284eba6a63969</id>
  <committed-date>2008-08-05T07:50:21-07:00</committed-date>
  <authored-date>2008-08-05T07:50:21-07:00</authored-date>
  <message>Added stub tests for ControllerGenerator. [#25 state:resolved]</message>
  <tree>1406bd808dec773eb62bc4cdc5ed071ef9d52f70</tree>
  <committer>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </committer>
</commit>
