diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-05 17:01:44 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-05 17:01:44 +0300 |
commit | 74213534bc324886451c3f858409fc0d33eecc8c (patch) | |
tree | 0aa10422739fb3194f34c3d45b3827e22247c1e8 | |
parent | 58dad2b95463ae0bb0fd21258804f32352f0a6b5 (diff) | |
download | gitlab-ce-74213534bc324886451c3f858409fc0d33eecc8c.tar.gz |
Fix tests
-rw-r--r-- | spec/requests/admin/admin_projects_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/admin/admin_projects_spec.rb b/spec/requests/admin/admin_projects_spec.rb index 2edfb59231d..61e66eec08b 100644 --- a/spec/requests/admin/admin_projects_spec.rb +++ b/spec/requests/admin/admin_projects_spec.rb @@ -87,7 +87,7 @@ describe "Admin::Projects" do visit new_admin_project_path fill_in 'project_name', with: 'NewProject' fill_in 'project_code', with: 'NPR' - fill_in 'project_path', with: 'newproject' + fill_in 'project_path', with: 'gitlabhq_1' expect { click_button "Create project" }.to change { Project.count }.by(1) @project = Project.last end @@ -102,13 +102,13 @@ describe "Admin::Projects" do end end - describe "Add new team member" do - before do + describe "Add new team member" do + before do @new_user = Factory :user visit admin_project_path(@project) end - it "should create new user" do + it "should create new user" do select @new_user.name, from: "user_ids" expect { click_button "Add" }.to change { UsersProject.count }.by(1) page.should have_content @new_user.name |