summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-23 12:18:51 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-23 12:18:51 +0300
commitf0bfeb6e33f8d3620b7d5d6da8439fbdf954d6cb (patch)
treeba5b41c3fbc5c796dc9dc8c60301b4612643d7fd /features
parent367445fdcde4d07a685610449a2ab4d43b1fc507 (diff)
downloadgitlab-ce-f0bfeb6e33f8d3620b7d5d6da8439fbdf954d6cb.tar.gz
Refactor explore area tests. Replaced old links
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features')
-rw-r--r--features/explore/projects.feature (renamed from features/public/projects.feature)2
-rw-r--r--features/explore/public_groups.feature (renamed from features/public/public_groups.feature)2
-rw-r--r--features/steps/explore/groups_feature.rb (renamed from features/steps/public/groups_feature.rb)18
-rw-r--r--features/steps/explore/projects.rb (renamed from features/steps/public/projects.rb)2
-rw-r--r--features/steps/shared/paths.rb4
5 files changed, 14 insertions, 14 deletions
diff --git a/features/public/projects.feature b/features/explore/projects.feature
index c7bb3b4f8ce..2ed9707ec39 100644
--- a/features/public/projects.feature
+++ b/features/explore/projects.feature
@@ -1,5 +1,5 @@
@public
-Feature: Public Projects Feature
+Feature: Explore Projects Feature
Background:
Given public project "Community"
And internal project "Internal"
diff --git a/features/public/public_groups.feature b/features/explore/public_groups.feature
index ff3e1e3e955..825e3da934e 100644
--- a/features/public/public_groups.feature
+++ b/features/explore/public_groups.feature
@@ -1,5 +1,5 @@
@public
-Feature: Public Projects Feature
+Feature: Explore Groups Feature
Background:
Given group "TestGroup" has private project "Enterprise"
diff --git a/features/steps/public/groups_feature.rb b/features/steps/explore/groups_feature.rb
index 015deca5427..48486a83424 100644
--- a/features/steps/public/groups_feature.rb
+++ b/features/steps/explore/groups_feature.rb
@@ -1,4 +1,4 @@
-class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
+class Spinach::Features::ExploreGroupsFeature < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedGroup
@@ -15,7 +15,7 @@ class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
step 'group "TestGroup" has public project "Community"' do
group_has_project("TestGroup", "Community", Gitlab::VisibilityLevel::PUBLIC)
end
-
+
step '"John Doe" is owner of group "TestGroup"' do
group = Group.find_by(name: "TestGroup") || create(:group, name: "TestGroup")
user = create(:user, name: "John Doe")
@@ -37,31 +37,31 @@ class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
step 'I visit group "TestGroup" members page' do
visit members_group_path(Group.find_by(name: "TestGroup"))
end
-
+
step 'I should not see project "Enterprise" items' do
page.should_not have_content "Enterprise"
end
-
+
step 'I should see project "Internal" items' do
page.should have_content "Internal"
end
-
+
step 'I should not see project "Internal" items' do
page.should_not have_content "Internal"
end
-
+
step 'I should see project "Community" items' do
page.should have_content "Community"
end
-
+
step 'I change filter to Everyone\'s' do
click_link "Everyone's"
end
-
+
step 'I should see group member "John Doe"' do
page.should have_content "John Doe"
end
-
+
step 'I should not see member roles' do
page.body.should_not match(%r{owner|developer|reporter|guest}i)
end
diff --git a/features/steps/public/projects.rb b/features/steps/explore/projects.rb
index 7c7311bb91c..8aa2916014b 100644
--- a/features/steps/public/projects.rb
+++ b/features/steps/explore/projects.rb
@@ -1,4 +1,4 @@
-class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
+class Spinach::Features::ExploreProjectsFeature < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedProject
diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb
index d92c70c952e..a0b4099ab3e 100644
--- a/features/steps/shared/paths.rb
+++ b/features/steps/shared/paths.rb
@@ -324,7 +324,7 @@ module SharedPaths
# ----------------------------------------
step 'I visit the public projects area' do
- visit public_root_path
+ visit explore_projects_path
end
step 'I visit public page for "Community" project' do
@@ -336,7 +336,7 @@ module SharedPaths
# ----------------------------------------
step 'I visit the public groups area' do
- visit public_groups_path
+ visit explore_groups_path
end
# ----------------------------------------