summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2012-04-24 21:49:34 +0300
committergitlabhq <m@gitlabhq.com>2012-04-24 21:49:34 +0300
commitc9af8e757948838cd6e7232dc189debd61e0c799 (patch)
tree0fff929c3c0ae92a9278caa34b7365a4e1cf59f0 /spec
parentaf99e4afe18788a536c5e789153235f3ff44f67f (diff)
downloadgitlab-ce-c9af8e757948838cd6e7232dc189debd61e0c799.tar.gz
New project page improved. User profile improved. Show issues, participant on Milestone show page.
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/projects_spec.rb23
1 files changed, 10 insertions, 13 deletions
diff --git a/spec/requests/projects_spec.rb b/spec/requests/projects_spec.rb
index f3be8075283..dd7d040cb55 100644
--- a/spec/requests/projects_spec.rb
+++ b/spec/requests/projects_spec.rb
@@ -34,19 +34,17 @@ describe "Projects" do
end
it "should have labels for new project" do
- page.should have_content("Name")
- page.should have_content("Path")
- page.should have_content("Description")
+ page.should have_content("Project name is")
end
end
describe "POST /projects" do
before do
visit new_project_path
- fill_in 'Name', :with => 'NewProject'
- fill_in 'Code', :with => 'NPR'
- fill_in 'Path', :with => 'newproject'
- expect { click_button "Save" }.to change { Project.count }.by(1)
+ fill_in 'project_name', :with => 'NewProject'
+ fill_in 'project_code', :with => 'NPR'
+ fill_in 'project_path', :with => 'newproject'
+ expect { click_button "Create project" }.to change { Project.count }.by(1)
@project = Project.last
end
@@ -120,9 +118,9 @@ describe "Projects" do
end
it "should have labels for new project" do
- page.should have_content("Name")
- page.should have_content("Path")
- page.should have_content("Description")
+ page.should have_content("Project name is")
+ page.should have_content("Advanced settings:")
+ page.should have_content("Features:")
end
end
@@ -133,9 +131,8 @@ describe "Projects" do
visit edit_project_path(@project)
- fill_in 'Name', :with => 'Awesome'
- fill_in 'Path', :with => 'gitlabhq'
- fill_in 'Description', :with => 'Awesome project'
+ fill_in 'project_name', :with => 'Awesome'
+ fill_in 'project_path', :with => 'gitlabhq'
click_button "Save"
@project = @project.reload
end