Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-19 14:20:42 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-19 14:20:42 +0400
commitf3369e3a004ad01176b9191e2cb494866f91b637 (patch)
treee3b64871fbb73e7289af13ef6b9b2aa00e199e93 /features/steps/admin/projects.rb
parent67934145e88e439c4266d6a4f19372f170fc6095 (diff)
Fix project trasnfer for admin area
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features/steps/admin/projects.rb')
-rw-r--r--features/steps/admin/projects.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/features/steps/admin/projects.rb b/features/steps/admin/projects.rb
index b410b23851b..992aa46a8bc 100644
--- a/features/steps/admin/projects.rb
+++ b/features/steps/admin/projects.rb
@@ -19,4 +19,30 @@ class AdminProjects < Spinach::FeatureSteps
page.should have_content(project.name_with_namespace)
page.should have_content(project.creator.name)
end
+
+ step 'I visit admin project page' do
+ visit admin_project_path(project)
+ end
+
+ step 'I transfer project to group \'Web\'' do
+ find(:xpath, "//input[@id='namespace_id']").set group.id
+ click_button 'Transfer'
+ end
+
+ step 'group \'Web\'' do
+ create(:group, name: 'Web')
+ end
+
+ step 'I should see project transfered' do
+ page.should have_content 'Web / ' + project.name
+ page.should have_content 'Namespace: Web'
+ end
+
+ def project
+ @project ||= Project.first
+ end
+
+ def group
+ Group.find_by(name: 'Web')
+ end
end