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-12-02 11:33:21 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-02 11:33:21 +0400
commitdc29b237330a0a4277ebcb339a7b65296404267c (patch)
tree345228fe162d65c094dc430f32be6824c673b608 /features
parent0da6394c41661c597c09a8191d3bfd4581a9d6bc (diff)
parent5907207e4ddb85fff997ad243f6be7486800eceb (diff)
Merge pull request #5725 from Popl7/http_repo_link_on_public_acces
Correct url to pull puplic repos anonymously on project page
Diffstat (limited to 'features')
-rw-r--r--features/public/public_projects.feature11
-rw-r--r--features/steps/public/projects_feature.rb10
2 files changed, 21 insertions, 0 deletions
diff --git a/features/public/public_projects.feature b/features/public/public_projects.feature
index 86bb888fdb6..03825dffd3f 100644
--- a/features/public/public_projects.feature
+++ b/features/public/public_projects.feature
@@ -38,3 +38,14 @@ Feature: Public Projects Feature
Given I sign in as a user
When I visit project "Internal" page
Then I should see project "Internal" home page
+
+ Scenario: I visit public project page
+ When I visit project "Community" page
+ Then I should see project "Community" home page
+ And I should see a http link to the repository
+
+ Scenario: I visit public area as user
+ Given I sign in as a user
+ When I visit project "Community" page
+ Then I should see project "Community" home page
+ And I should see a ssh link to the repository
diff --git a/features/steps/public/projects_feature.rb b/features/steps/public/projects_feature.rb
index 8b61eba3ffb..a4209bb9c78 100644
--- a/features/steps/public/projects_feature.rb
+++ b/features/steps/public/projects_feature.rb
@@ -83,5 +83,15 @@ class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
page.should have_content 'Internal'
end
end
+
+ Then 'I should see a http link to the repository' do
+ project = Project.find_by_name 'Community'
+ page.should have_field('project_clone', with: project.http_url_to_repo)
+ end
+
+ Then 'I should see a ssh link to the repository' do
+ project = Project.find_by_name 'Community'
+ page.should have_field('project_clone', with: project.url_to_repo)
+ end
end