diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-07-21 17:00:42 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-07-27 13:12:16 -0400 |
commit | 1b3681614b8851bbfc8a8d4c6fab8cf6d1c7182e (patch) | |
tree | 743672fde80bb802c5aea44825ba637d4ff7dfc5 /spec/features/groups/group_settings_spec.rb | |
parent | 75319d973b274e071492510688e369e8d3126b43 (diff) | |
download | gitlab-ce-1b3681614b8851bbfc8a8d4c6fab8cf6d1c7182e.tar.gz |
Use `empty_project` where possible in spec/features/groups
Diffstat (limited to 'spec/features/groups/group_settings_spec.rb')
-rw-r--r-- | spec/features/groups/group_settings_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/groups/group_settings_spec.rb b/spec/features/groups/group_settings_spec.rb index 47553922ede..121df1ec635 100644 --- a/spec/features/groups/group_settings_spec.rb +++ b/spec/features/groups/group_settings_spec.rb @@ -49,7 +49,7 @@ feature 'Edit group settings' do end context 'with a project' do - given!(:project) { create(:project, group: group, path: 'project') } + given!(:project) { create(:empty_project, group: group) } given(:old_project_full_path) { "/#{group.path}/#{project.path}" } given(:new_project_full_path) { "/#{new_group_path}/#{project.path}" } @@ -65,14 +65,14 @@ feature 'Edit group settings' do update_path(new_group_path) visit new_project_full_path expect(current_path).to eq(new_project_full_path) - expect(find('h1.project-title')).to have_content(project.name) + expect(find('h1.title')).to have_content(project.path) end scenario 'the old project path redirects to the new path' do update_path(new_group_path) visit old_project_full_path expect(current_path).to eq(new_project_full_path) - expect(find('h1.project-title')).to have_content(project.name) + expect(find('h1.title')).to have_content(project.path) end end end |