diff --git a/app/views/shared/categories_menu.rhtml b/app/views/shared/categories_menu.rhtml
index befdb3d..7a34bc7 100644
--- a/app/views/shared/categories_menu.rhtml
+++ b/app/views/shared/categories_menu.rhtml
@@ -5,7 +5,7 @@
<%= item.name %>
<% item.children.each do |child| %>
- - <%= link_to(content_tag('span', child.name), :controller => 'category', :action => 'view', :path => child.explode_path) %>
+ - <%= link_to(content_tag('span', child.name), :controller => 'category', :action => 'view', :category_path => child.explode_path) %>
<% end %>
diff --git a/test/integration/categories_menu_test.rb b/test/integration/categories_menu_test.rb
new file mode 100644
index 0000000..a411e7c
--- /dev/null
+++ b/test/integration/categories_menu_test.rb
@@ -0,0 +1,16 @@
+require "#{File.dirname(__FILE__)}/../test_helper"
+
+class CategoriesMenuTest < ActionController::IntegrationTest
+
+ should 'display link to categories' do
+ Category.delete_all
+ cat1 = Category.create!(:name => 'Food', :environment => Environment.default, :display_color => 1)
+ cat2 = Category.create!(:name => 'Vegetables', :environment => Environment.default, :parent => cat1)
+
+ get '/'
+
+ assert_tag :tag => 'a', :attributes => { :href => '/cat/food/vegetables' }
+
+ end
+
+end
--
libgit2 0.21.2