Fix tab highlighting in admin interface.

This commit is contained in:
Pete Higgins 2011-12-15 17:27:18 -08:00
parent 7c63d8188e
commit 8cc819aeed
2 changed files with 14 additions and 1 deletions

View file

@ -14,7 +14,7 @@ module Refinery
plugin.pathname = root
plugin.name = "refinerycms_blog"
plugin.url = app.routes.url_helpers.refinery_admin_blog_posts_path
plugin.menu_match = /^\/refinery\/blog\/?(posts|comments|categories)?/
plugin.menu_match = /refinery\/blog\/?(posts|comments|categories)?/
plugin.activity = {
:class_name => :'refinery/blog/post'
}

View file

@ -0,0 +1,13 @@
require 'spec_helper'
describe "Blog menu entry" do
login_refinery_user
it "is highlighted when managing the blog" do
visit refinery_admin_root_path
within("#menu") { click_link "Blog" }
page.should have_css("a.active", :text => "Blog")
end
end