diff options
Diffstat (limited to 'spec/features/dashboard_milestones_spec.rb')
-rw-r--r-- | spec/features/dashboard_milestones_spec.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/spec/features/dashboard_milestones_spec.rb b/spec/features/dashboard_milestones_spec.rb deleted file mode 100644 index b308a2297b9..00000000000 --- a/spec/features/dashboard_milestones_spec.rb +++ /dev/null @@ -1,29 +0,0 @@ -require 'spec_helper' - -feature 'Dashboard > Milestones', feature: true do - describe 'as anonymous user' do - before do - visit dashboard_milestones_path - end - - it 'is redirected to sign-in page' do - expect(current_path).to eq new_user_session_path - end - end - - describe 'as logged-in user' do - let(:user) { create(:user) } - let(:project) { create(:empty_project, namespace: user.namespace) } - let!(:milestone) { create(:milestone, project: project) } - before do - project.team << [user, :master] - gitlab_sign_in(user) - visit dashboard_milestones_path - end - - it 'sees milestones' do - expect(current_path).to eq dashboard_milestones_path - expect(page).to have_content(milestone.title) - end - end -end |