Commit 74213534bc324886451c3f858409fc0d33eecc8c
1 parent
58dad2b9
Exists in
master
and in
4 other branches
Fix tests
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
spec/requests/admin/admin_projects_spec.rb
... | ... | @@ -87,7 +87,7 @@ describe "Admin::Projects" do |
87 | 87 | visit new_admin_project_path |
88 | 88 | fill_in 'project_name', with: 'NewProject' |
89 | 89 | fill_in 'project_code', with: 'NPR' |
90 | - fill_in 'project_path', with: 'newproject' | |
90 | + fill_in 'project_path', with: 'gitlabhq_1' | |
91 | 91 | expect { click_button "Create project" }.to change { Project.count }.by(1) |
92 | 92 | @project = Project.last |
93 | 93 | end |
... | ... | @@ -102,13 +102,13 @@ describe "Admin::Projects" do |
102 | 102 | end |
103 | 103 | end |
104 | 104 | |
105 | - describe "Add new team member" do | |
106 | - before do | |
105 | + describe "Add new team member" do | |
106 | + before do | |
107 | 107 | @new_user = Factory :user |
108 | 108 | visit admin_project_path(@project) |
109 | 109 | end |
110 | 110 | |
111 | - it "should create new user" do | |
111 | + it "should create new user" do | |
112 | 112 | select @new_user.name, from: "user_ids" |
113 | 113 | expect { click_button "Add" }.to change { UsersProject.count }.by(1) |
114 | 114 | page.should have_content @new_user.name | ... | ... |