diff options
author | Vitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com> | 2017-09-13 09:50:18 +1100 |
---|---|---|
committer | Vitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com> | 2017-09-13 10:01:44 +1100 |
commit | 297dfe6ab91da9e655fb2d8fc633048974bdb208 (patch) | |
tree | 9323626edbbf0e4f9c888a18b77a921b2d331061 /spec/features/profiles/user_visits_profile_account_page_spec.rb | |
parent | 373ff978dfb6898ee5e1d4d6355313c349a60a96 (diff) | |
download | gitlab-ce-297dfe6ab91da9e655fb2d8fc633048974bdb208.tar.gz |
Replace the 'profile/active_tab.feature' spinach test with an rspec analog
Diffstat (limited to 'spec/features/profiles/user_visits_profile_account_page_spec.rb')
-rw-r--r-- | spec/features/profiles/user_visits_profile_account_page_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/profiles/user_visits_profile_account_page_spec.rb b/spec/features/profiles/user_visits_profile_account_page_spec.rb new file mode 100644 index 00000000000..8c7233c77ad --- /dev/null +++ b/spec/features/profiles/user_visits_profile_account_page_spec.rb @@ -0,0 +1,16 @@ +require 'spec_helper' + +describe 'User visits the profile account page' do + let(:user) { create(:user) } + + before do + sign_in(user) + + visit(profile_account_path) + end + + it 'shows correct menu item' do + expect(find('.sidebar-top-level-items > li.active')).to have_content('Account') + expect(page).to have_selector('.sidebar-top-level-items > li.active', count: 1) + end +end |