project path & code regexp validation

This commit is contained in:
gitlabhq 2011-10-15 19:30:56 +03:00
parent 29158ea38c
commit 57baa49bc3
5 changed files with 9 additions and 10 deletions

View file

@ -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