summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-15 19:30:56 +0300
committergitlabhq <m@gitlabhq.com>2011-10-15 19:30:56 +0300
commit57baa49bc3c71cc8084d925415e44ad1b8ad73a9 (patch)
treed0cf3e4b0ba84755cabf75fa0152b9e0cd7cf423 /spec
parent29158ea38c74f23ff570c6ac4c90725624cb0dcd (diff)
downloadgitlab-ce-57baa49bc3c71cc8084d925415e44ad1b8ad73a9.tar.gz
project path & code regexp validation
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/admin/admin_projects_spec.rb2
-rw-r--r--spec/requests/projects_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/admin/admin_projects_spec.rb b/spec/requests/admin/admin_projects_spec.rb
index 8aa311e8442..e36ee4411ff 100644
--- a/spec/requests/admin/admin_projects_spec.rb
+++ b/spec/requests/admin/admin_projects_spec.rb
@@ -88,7 +88,7 @@ describe "Admin::Projects" do
visit new_admin_project_path
fill_in 'Name', :with => 'NewProject'
fill_in 'Code', :with => 'NPR'
- fill_in 'Path', :with => '/tmp/legit_test/legit'
+ fill_in 'Path', :with => 'legit_1'
expect { click_button "Save" }.to change { Project.count }.by(1)
@project = Project.last
end
diff --git a/spec/requests/projects_spec.rb b/spec/requests/projects_spec.rb
index 329f0a50435..2825a6a979a 100644
--- a/spec/requests/projects_spec.rb
+++ b/spec/requests/projects_spec.rb
@@ -39,7 +39,7 @@ describe "Projects" do
visit new_project_path
fill_in 'Name', :with => 'NewProject'
fill_in 'Code', :with => 'NPR'
- fill_in 'Path', :with => '/tmp/legit_test/legit'
+ fill_in 'Path', :with => 'newproject'
expect { click_button "Create Project" }.to change { Project.count }.by(1)
@project = Project.last
end