diff options
Diffstat (limited to 'spec/features/dashboard/activity_spec.rb')
-rw-r--r-- | spec/features/dashboard/activity_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/features/dashboard/activity_spec.rb b/spec/features/dashboard/activity_spec.rb index b419a063858..e75e661b513 100644 --- a/spec/features/dashboard/activity_spec.rb +++ b/spec/features/dashboard/activity_spec.rb @@ -9,6 +9,26 @@ RSpec.describe 'Dashboard > Activity' do sign_in(user) end + context 'tabs' do + it 'shows Your Projects' do + visit activity_dashboard_path + + expect(find('.top-area .nav-tabs li.active')).to have_content('Your projects') + end + + it 'shows Starred Projects' do + visit activity_dashboard_path(filter: 'starred') + + expect(find('.top-area .nav-tabs li.active')).to have_content('Starred projects') + end + + it 'shows Followed Projects' do + visit activity_dashboard_path(filter: 'followed') + + expect(find('.top-area .nav-tabs li.active')).to have_content('Followed users') + end + end + context 'rss' do before do visit activity_dashboard_path |