summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-03 00:00:48 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-03 00:00:48 -0700
commit2fc236177f70244101b285bde8ee6a77f779c0ce (patch)
tree289e70a51240f236df3742403fb4eab360431500 /features
parentf40d4e6685ca749c69bfc480a747a430f6c9825f (diff)
parent8589f0f4000095583a3a536f4986dd85a379669d (diff)
downloadgitlab-ce-2fc236177f70244101b285bde8ee6a77f779c0ce.tar.gz
Merge pull request #3801 from holdtotherod/feature/internally-public-projects
Internally public projects
Diffstat (limited to 'features')
-rw-r--r--features/project/public_projects.feature8
-rw-r--r--features/steps/project/public_projects.rb9
-rw-r--r--features/steps/shared/paths.rb8
3 files changed, 25 insertions, 0 deletions
diff --git a/features/project/public_projects.feature b/features/project/public_projects.feature
new file mode 100644
index 00000000000..c5a9da14c54
--- /dev/null
+++ b/features/project/public_projects.feature
@@ -0,0 +1,8 @@
+Feature: Public Projects
+ Background:
+ Given I sign in as a user
+
+ Scenario: I should see the list of public projects
+ When I visit the public projects area
+ Then I should see the list of public projects
+
diff --git a/features/steps/project/public_projects.rb b/features/steps/project/public_projects.rb
new file mode 100644
index 00000000000..7063e7d56ae
--- /dev/null
+++ b/features/steps/project/public_projects.rb
@@ -0,0 +1,9 @@
+class PublicProjects < Spinach::FeatureSteps
+ include SharedAuthentication
+ include SharedProject
+ include SharedPaths
+
+ Then 'I should see the list of public projects' do
+ page.should have_content "Public Projects"
+ end
+end
diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb
index 27ca65b22dd..38730cc2cd6 100644
--- a/features/steps/shared/paths.rb
+++ b/features/steps/shared/paths.rb
@@ -263,6 +263,14 @@ module SharedPaths
visit project_wiki_path(@project, :home)
end
+ # ----------------------------------------
+ # Public Projects
+ # ----------------------------------------
+
+ Given 'I visit the public projects area' do
+ visit public_root_path
+ end
+
def root_ref
@project.repository.root_ref
end