summaryrefslogtreecommitdiff
path: root/features/steps
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-08-30 08:54:43 +1100
committerblackst0ne <blackst0ne.ru@gmail.com>2017-08-30 08:54:43 +1100
commit569c7becf0ef18f56d03d738b8fedadbec869c08 (patch)
treefd361e47517c7bbab065ed42049e95025617a0d5 /features/steps
parent2be34630623711fc20ef8c101b5cef688f207cc1 (diff)
downloadgitlab-ce-569c7becf0ef18f56d03d738b8fedadbec869c08.tar.gz
Replace 'project/star.feature' spinach test with an rspec analog
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/project/star.rb37
1 files changed, 0 insertions, 37 deletions
diff --git a/features/steps/project/star.rb b/features/steps/project/star.rb
deleted file mode 100644
index 9f7c748a3b7..00000000000
--- a/features/steps/project/star.rb
+++ /dev/null
@@ -1,37 +0,0 @@
-class Spinach::Features::ProjectStar < Spinach::FeatureSteps
- include SharedAuthentication
- include SharedProject
- include SharedPaths
- include SharedUser
-
- step "The project has no stars" do
- expect(page).not_to have_content '.toggle-star'
- end
-
- step "The project has 0 stars" do
- has_n_stars(0)
- end
-
- step "The project has 1 star" do
- has_n_stars(1)
- end
-
- step "The project has 2 stars" do
- has_n_stars(2)
- end
-
- # Requires @javascript
- step "I click on the star toggle button" do
- find(".star-btn", visible: true).click
- end
-
- step 'I redirected to sign in page' do
- expect(current_path).to eq new_user_session_path
- end
-
- protected
-
- def has_n_stars(n)
- expect(page).to have_css(".star-count", text: n, visible: true)
- end
-end