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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-24 23:14:28 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-24 23:14:28 +0400
commit2f6342978bfb0bd7aafc345a36bb0846b73cc80d (patch)
tree4599e4dc145c3ca48d3dfbb958f457c55da4f424 /features
parent61eb050993e85459282dd6f39c1f703d29b6d3a7 (diff)
Public projects feature - step2
* Render right layout depends on current_user * show sample git username/email when repo is empty * Show extra info when browsing public area * Fixed some tests related to public projects * show comments in read-only for public projects * Remove old public routing
Diffstat (limited to 'features')
-rw-r--r--features/public/public_projects.feature9
-rw-r--r--features/steps/public/projects_feature.rb15
2 files changed, 16 insertions, 8 deletions
diff --git a/features/public/public_projects.feature b/features/public/public_projects.feature
index 1866d3f47fe..178a769194c 100644
--- a/features/public/public_projects.feature
+++ b/features/public/public_projects.feature
@@ -9,11 +9,10 @@ Feature: Public Projects Feature
And I should not see project "Enterprise"
Scenario: I visit public project page
- When I visit public page for "Community" project
- Then I should see public project details
- And I should see project readme
+ When I visit project "Community" page
+ Then I should see project "Community" home page
Scenario: I visit an empty public project page
Given public empty project "Empty Public Project"
- When I visit empty public project page
- Then I should see empty public project details \ No newline at end of file
+ When I visit empty project page
+ Then I should see empty public project details
diff --git a/features/steps/public/projects_feature.rb b/features/steps/public/projects_feature.rb
index 2268e9b9c5e..2f2c4de0b2a 100644
--- a/features/steps/public/projects_feature.rb
+++ b/features/steps/public/projects_feature.rb
@@ -31,19 +31,28 @@ class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
create :project, name: 'Empty Public Project', public: true
end
- step 'I visit empty public project page' do
+ step 'I visit empty project page' do
project = Project.find_by_name('Empty Public Project')
- visit public_project_path(project)
+ visit project_path(project)
+ end
+
+ step 'I visit project "Community" page' do
+ project = Project.find_by_name('Community')
+ visit project_path(project)
end
step 'I should see empty public project details' do
- page.should have_content 'Empty Repository'
+ page.should have_content 'Git global setup'
end
step 'private project "Enterprise"' do
create :project, name: 'Enterprise'
end
+ step 'I should see project "Community" home page' do
+ page.should have_content 'Repo size is'
+ end
+
private
def project