<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>features/categories.feature</filename>
    </added>
    <added>
      <filename>features/support/blueprints/categories.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -18,3 +18,4 @@ config/newrelic.yml
 .gitignore.swp
 public/avatars
 vendor/plugins/newrelic_rpm
+webrat*.html</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,7 @@ class Admin::CategoriesController &lt; Admin::ApplicationController
    def create
      @category = Category.new(params[:category])
      if @category.save
-       flash[:notice] = t(:created, :thing =&gt; &quot;category&quot;)
+       flash[:notice] = t(:created, :thing =&gt; &quot;Category&quot;)
        redirect_to admin_categories_path
      else
        flash[:notice] = t(:not_created, :thing =&gt; &quot;category&quot;)
@@ -36,7 +36,7 @@ class Admin::CategoriesController &lt; Admin::ApplicationController
    # Updates a category.
    def update
      if @category.update_attributes(params[:category])
-       flash[:notice] = t(:updated, :thing =&gt; &quot;category&quot;)
+       flash[:notice] = t(:updated, :thing =&gt; &quot;Category&quot;)
        redirect_to admin_categories_path
      else
        flash[:notice] = t(:not_updated, :thing =&gt; &quot;category&quot;)</diff>
      <filename>app/controllers/admin/categories_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,5 +8,7 @@ class Category &lt; ActiveRecord::Base
   has_many :groups, :through =&gt; :permissions
   
   named_scope :without_parent, :conditions =&gt; { :parent_id =&gt; nil }, :include =&gt; :permissions
+  
+  validates_presence_of :name
 
 end</diff>
      <filename>app/models/category.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;tr&gt;
   &lt;td class='icon'&gt;
-    &lt;%= link_to theme_image_tag(&quot;edit.jpg&quot;), edit_admin_category_path(category) %&gt;
+    &lt;%= link_to theme_image_tag(&quot;edit.jpg&quot;), edit_admin_category_path(category), :id =&gt; &quot;edit_category_#{category.id}&quot; %&gt;
     &lt;%= link_to theme_image_tag(&quot;delete.jpg&quot;), admin_category_path(category), :method =&gt; &quot;delete&quot;, :confirm =&gt; t(:confirm_deletion, :thing =&gt; &quot;category&quot;) %&gt;
   &lt;/td&gt;
   </diff>
      <filename>app/views/admin/categories/_category.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -36,7 +36,6 @@ Feature: Forums
     When I follow &quot;Closed Forum&quot;
     Then I should not see &quot;New Topic&quot;
     When I follow &quot;Closed Forum's Topic&quot;
-    When I dump the page
     Then I should not see &quot;New Reply&quot;
   
   Scenario: Administrators should be able to create new forums</diff>
      <filename>features/forums.feature</filename>
    </modified>
    <modified>
      <diff>@@ -5,4 +5,5 @@ end
 
 Forum.blueprint(:public_forum) do
   title &quot;Public Forum&quot;
+  category { Category.make(:public) }
 end</diff>
      <filename>features/support/blueprints/forums.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 Permission.blueprint do
   can_see_forum true
+  can_see_category true
   group { Group.ensure(&quot;Anonymous&quot;) }
 end
 </diff>
      <filename>features/support/blueprints/permissions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ Feature: Topics
     When I fill in &quot;subject&quot; with &quot;Tribute&quot;
     When I fill in &quot;Text&quot; with &quot;This is just a tribute&quot;
     When I press &quot;Create&quot;
-    Then I should see &quot;rBoard -&gt; Public Forum -&gt; Tribute&quot;
+    Then I should see &quot;rBoard -&gt; Public Category -&gt; Public Forum -&gt; Tribute&quot;
     
   Scenario: Registered users should not be able to post new topics in closed forums
     Given I am logged in as &quot;registered_user&quot;</diff>
      <filename>features/topics.feature</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>516d2dc39c63a3aa29aa0c4c51363bfbf27e880c</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Bigg</name>
    <email>radarlistener@gmail.com</email>
  </author>
  <url>http://github.com/radar/rboard/commit/eba5d458a75360d2bc5068da4d6b380419fba9c0</url>
  <id>eba5d458a75360d2bc5068da4d6b380419fba9c0</id>
  <committed-date>2009-08-23T00:33:31-07:00</committed-date>
  <authored-date>2009-08-23T00:33:31-07:00</authored-date>
  <message>Added features for creating and updating categories.</message>
  <tree>2e62f59966398e2f0a03f42a849a4d1cc0fb717f</tree>
  <committer>
    <name>Ryan Bigg</name>
    <email>radarlistener@gmail.com</email>
  </committer>
</commit>
