diff options
author | Rémy Coutable <remy@rymai.me> | 2018-02-22 12:57:56 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-02-26 13:17:05 +0100 |
commit | 566be168cff435f088d45baf1c6934bff4bb493f (patch) | |
tree | b09f2caf2d7729b1b706cacd8c874b96a7f9ea88 /spec/features | |
parent | d1ceb60068c9c1a8a91e20ddffc108f82f313790 (diff) | |
download | gitlab-ce-566be168cff435f088d45baf1c6934bff4bb493f.tar.gz |
Get rid of hard-coded user/project/group names that could clash with DB sequences
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb index 645d12da09f..cfe979a8647 100644 --- a/spec/features/projects_spec.rb +++ b/spec/features/projects_spec.rb @@ -146,8 +146,8 @@ feature 'Project' do end describe 'removal', :js do - let(:user) { create(:user, username: 'test', name: 'test') } - let(:project) { create(:project, namespace: user.namespace, name: 'project1') } + let(:user) { create(:user) } + let(:project) { create(:project, namespace: user.namespace) } before do sign_in(user) @@ -156,8 +156,8 @@ feature 'Project' do end it 'removes a project' do - expect { remove_with_confirm('Remove project', project.path) }.to change {Project.count}.by(-1) - expect(page).to have_content "Project 'test / project1' is in the process of being deleted." + expect { remove_with_confirm('Remove project', project.path) }.to change { Project.count }.by(-1) + expect(page).to have_content "Project '#{project.full_name}' is in the process of being deleted." expect(Project.all.count).to be_zero expect(project.issues).to be_empty expect(project.merge_requests).to be_empty |