Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-07-28 01:42:44 +0400
committerrandx <dmitriy.zaporozhets@gmail.com>2012-07-28 01:42:44 +0400
commit69e41250d1b1eea609ae63f2702d5888396cba9a (patch)
treedae91d9751e7a219cc09735c8741d4bb7cdf4524 /spec/requests/admin
parent217810433b332a55b9620fcfe016735f33f8637d (diff)
Styled New/Edit Project for admin area
Diffstat (limited to 'spec/requests/admin')
-rw-r--r--spec/requests/admin/admin_projects_spec.rb22
1 files changed, 10 insertions, 12 deletions
diff --git a/spec/requests/admin/admin_projects_spec.rb b/spec/requests/admin/admin_projects_spec.rb
index fb6577de326..37cb7d6704d 100644
--- a/spec/requests/admin/admin_projects_spec.rb
+++ b/spec/requests/admin/admin_projects_spec.rb
@@ -41,15 +41,15 @@ describe "Admin::Projects" do
end
it "should have project edit page" do
- page.should have_content("Name")
- page.should have_content("Code")
+ page.should have_content("Project name")
+ page.should have_content("URL")
end
describe "Update project" do
before do
fill_in "project_name", :with => "Big Bang"
fill_in "project_code", :with => "BB1"
- click_button "Save"
+ click_button "Save Project"
@project.reload
end
@@ -76,20 +76,19 @@ describe "Admin::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("Git Clone")
+ page.should have_content("URL")
end
end
describe "POST /admin/projects" do
before do
visit new_admin_project_path
- fill_in 'Name', :with => 'NewProject'
- fill_in 'Code', :with => 'NPR'
- fill_in 'Path', :with => 'gitlabhq_1'
- fill_in 'Description', :with => 'New Project Description'
- 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 => 'gitlabhq_1'
+ expect { click_button "Create project" }.to change { Project.count }.by(1)
@project = Project.last
end
@@ -100,7 +99,6 @@ describe "Admin::Projects" do
it "should show project" do
page.should have_content(@project.name)
page.should have_content(@project.path)
- page.should have_content(@project.description)
end
end