diff options
author | Steven Thonus <steven@ln2.nl> | 2013-11-28 22:46:55 +0100 |
---|---|---|
committer | Steven Thonus <steven@ln2.nl> | 2013-11-29 09:32:34 +0100 |
commit | 5907207e4ddb85fff997ad243f6be7486800eceb (patch) | |
tree | 307914f5a8629621de966ef856d27cd30169fd51 /features | |
parent | 2e07865f16f96bc4706758cc5f2634574d38be37 (diff) | |
download | gitlab-ce-5907207e4ddb85fff997ad243f6be7486800eceb.tar.gz |
showing as default http link for public repo when anonymous
Diffstat (limited to 'features')
-rw-r--r-- | features/public/public_projects.feature | 11 | ||||
-rw-r--r-- | features/steps/public/projects_feature.rb | 10 |
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 |