aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/refinery/blog/admin/menu_spec.rb
blob: 64f6461fd6b9eefc6d19763cd0fdd9ebb8c86d1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'spec_helper'

module Refinery
  module Blog
    module Admin
      describe Menu, type: :feature do
        refinery_login_with_devise :authentication_devise_refinery_superuser

        it "is highlighted when managing the blog" do
          visit refinery.admin_root_path

          within("#menu") { click_link "Blog" }

          expect(page).to have_css("a.active", :text => "Blog")
        end
      end
    end
  end
end