Fix tab highlighting in admin interface.
This commit is contained in:
parent
7c63d8188e
commit
8cc819aeed
2 changed files with 14 additions and 1 deletions
|
@ -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'
|
||||
}
|
||||
|
|
13
spec/requests/refinery/admin/menu_spec.rb
Normal file
13
spec/requests/refinery/admin/menu_spec.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue