From 8cc819aeed461da046af5bb120f6cd58c9299aa3 Mon Sep 17 00:00:00 2001 From: Pete Higgins Date: Thu, 15 Dec 2011 17:27:18 -0800 Subject: Fix tab highlighting in admin interface. --- spec/requests/refinery/admin/menu_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 spec/requests/refinery/admin/menu_spec.rb (limited to 'spec/requests/refinery/admin') diff --git a/spec/requests/refinery/admin/menu_spec.rb b/spec/requests/refinery/admin/menu_spec.rb new file mode 100644 index 0000000..b02a473 --- /dev/null +++ b/spec/requests/refinery/admin/menu_spec.rb @@ -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 -- cgit v1.2.3