summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-01-13 04:53:32 +0000
committerRémy Coutable <remy@rymai.me>2017-01-13 04:53:32 +0000
commit11001dd97f35e992e157e74110843ee3c7c80aa5 (patch)
tree88cf858b36daa80758876592728762d1f3fac0cc /features
parented85fdb218970497c212731ddc21ee53b1678346 (diff)
parent65b1ea3ba574c2283fa5a4a744861d8f78a992f8 (diff)
downloadgitlab-ce-11001dd97f35e992e157e74110843ee3c7c80aa5.tar.gz
Merge branch 'move-dashboard-group-spinach-to-rspec' into 'master'
Move dashboard group spinach test to rspec See merge request !8434
Diffstat (limited to 'features')
-rw-r--r--features/dashboard/group.feature13
-rw-r--r--features/steps/dashboard/group.rb25
2 files changed, 0 insertions, 38 deletions
diff --git a/features/dashboard/group.feature b/features/dashboard/group.feature
deleted file mode 100644
index 3ae2c679dc1..00000000000
--- a/features/dashboard/group.feature
+++ /dev/null
@@ -1,13 +0,0 @@
-@dashboard
-Feature: Dashboard Group
- Background:
- Given I sign in as "John Doe"
- And "John Doe" is owner of group "Owned"
- And "John Doe" is guest of group "Guest"
-
- Scenario: Create a group from dasboard
- And I visit dashboard groups page
- And I click new group link
- And submit form with new group "Samurai" info
- Then I should be redirected to group "Samurai" page
- And I should see newly created group "Samurai"
diff --git a/features/steps/dashboard/group.rb b/features/steps/dashboard/group.rb
deleted file mode 100644
index cf679fea530..00000000000
--- a/features/steps/dashboard/group.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-class Spinach::Features::DashboardGroup < Spinach::FeatureSteps
- include SharedAuthentication
- include SharedGroup
- include SharedPaths
- include SharedUser
-
- step 'I click new group link' do
- click_link "New Group"
- end
-
- step 'submit form with new group "Samurai" info' do
- fill_in 'group_path', with: 'Samurai'
- fill_in 'group_description', with: 'Tokugawa Shogunate'
- click_button "Create group"
- end
-
- step 'I should be redirected to group "Samurai" page' do
- expect(current_path).to eq group_path(Group.find_by(name: 'Samurai'))
- end
-
- step 'I should see newly created group "Samurai"' do
- expect(page).to have_content "Samurai"
- expect(page).to have_content "Tokugawa Shogunate"
- end
-end