summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-11-05 06:43:05 +0000
committerRobert Speicher <robert@gitlab.com>2016-11-05 06:43:05 +0000
commit50f3fd49a26d04f92246407b7bafccaf89567dae (patch)
treef62ad202d6d1fe06b16e97f10707614a3911195a /features
parent09f4af04c6672f7e2d1584f9940a3d9ff53a4a4f (diff)
parent27528d4490804c4bf5e16f44d12f9825cf7c6cef (diff)
downloadgitlab-ce-50f3fd49a26d04f92246407b7bafccaf89567dae.tar.gz
Merge branch 'move-public-snippets-feature-to-rspec' into 'master'
Move Spinach public snippet feature test to RSpec feature See #23036 See merge request !7256
Diffstat (limited to 'features')
-rw-r--r--features/snippets/public_snippets.feature10
-rw-r--r--features/steps/snippets/public_snippets.rb25
2 files changed, 0 insertions, 35 deletions
diff --git a/features/snippets/public_snippets.feature b/features/snippets/public_snippets.feature
deleted file mode 100644
index c2afb63b6d8..00000000000
--- a/features/snippets/public_snippets.feature
+++ /dev/null
@@ -1,10 +0,0 @@
-Feature: Public snippets
- Scenario: Unauthenticated user should see public snippets
- Given There is public "Personal snippet one" snippet
- And I visit snippet page "Personal snippet one"
- Then I should see snippet "Personal snippet one"
-
- Scenario: Unauthenticated user should see raw public snippets
- Given There is public "Personal snippet one" snippet
- And I visit snippet raw page "Personal snippet one"
- Then I should see raw snippet "Personal snippet one"
diff --git a/features/steps/snippets/public_snippets.rb b/features/steps/snippets/public_snippets.rb
deleted file mode 100644
index 2ebdca5ed30..00000000000
--- a/features/steps/snippets/public_snippets.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-class Spinach::Features::PublicSnippets < Spinach::FeatureSteps
- include SharedAuthentication
- include SharedPaths
- include SharedSnippet
-
- step 'I should see snippet "Personal snippet one"' do
- expect(page).to have_no_xpath("//i[@class='public-snippet']")
- end
-
- step 'I should see raw snippet "Personal snippet one"' do
- expect(page).to have_text(snippet.content)
- end
-
- step 'I visit snippet page "Personal snippet one"' do
- visit snippet_path(snippet)
- end
-
- step 'I visit snippet raw page "Personal snippet one"' do
- visit raw_snippet_path(snippet)
- end
-
- def snippet
- @snippet ||= PersonalSnippet.find_by!(title: "Personal snippet one")
- end
-end