summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-07-21 17:19:12 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-07-27 13:12:16 -0400
commitf7c5c6861065126c026877a90e2e32cf02df426d (patch)
tree5f1f386f52b38e5539001569e82a622a90cbdc63 /spec
parent0853dacad67e2d7e9ce92b50bf6d3ed664ace76f (diff)
downloadgitlab-ce-f7c5c6861065126c026877a90e2e32cf02df426d.tar.gz
Use `empty_project` where possible in spec/features/profiles
Diffstat (limited to 'spec')
-rw-r--r--spec/features/profiles/account_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/profiles/account_spec.rb b/spec/features/profiles/account_spec.rb
index 7791047877d..56c1f7ae9c7 100644
--- a/spec/features/profiles/account_spec.rb
+++ b/spec/features/profiles/account_spec.rb
@@ -27,7 +27,7 @@ feature 'Profile > Account' do
end
context 'with a project' do
- given!(:project) { create(:project, namespace: user.namespace, path: 'project') }
+ given!(:project) { create(:empty_project, namespace: user.namespace) }
given(:new_project_path) { "/#{new_username}/#{project.path}" }
given(:old_project_path) { "/#{user.username}/#{project.path}" }
@@ -43,14 +43,14 @@ feature 'Profile > Account' do
update_username(new_username)
visit new_project_path
expect(current_path).to eq(new_project_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_username(new_username)
visit old_project_path
expect(current_path).to eq(new_project_path)
- expect(find('h1.project-title')).to have_content(project.name)
+ expect(find('h1.title')).to have_content(project.path)
end
end
end