diff options
author | Vitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com> | 2017-09-16 13:09:58 +0300 |
---|---|---|
committer | Vitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com> | 2017-09-16 13:09:58 +0300 |
commit | 2a966f1b4e2fc640249f3c99afcdb3f06d70aaeb (patch) | |
tree | b206ffb44a67b906289267f5cbf38afc4109ba44 /spec/features/profiles/user_visits_profile_preferences_page_spec.rb | |
parent | 20295b3db379f4be02521cac591feca3452a2b1c (diff) |
Improve 'spec/features/profiles/*' specs
Diffstat (limited to 'spec/features/profiles/user_visits_profile_preferences_page_spec.rb')
-rw-r--r-- | spec/features/profiles/user_visits_profile_preferences_page_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/features/profiles/user_visits_profile_preferences_page_spec.rb b/spec/features/profiles/user_visits_profile_preferences_page_spec.rb index d1776b3d7c2..924ee0e4174 100644 --- a/spec/features/profiles/user_visits_profile_preferences_page_spec.rb +++ b/spec/features/profiles/user_visits_profile_preferences_page_spec.rb @@ -10,8 +10,7 @@ describe 'User visits the profile preferences page' do end it 'shows correct menu item' do - expect(find('.sidebar-top-level-items > li.active')).to have_content('Preferences') - expect(page).to have_selector('.sidebar-top-level-items > li.active', count: 1) + expect(page).to have_active_navigation('Preferences') end describe 'User changes their syntax highlighting theme', :js do |