diff options
author | the-undefined <joe@joejames.io> | 2016-11-07 08:01:27 +0000 |
---|---|---|
committer | the-undefined <joe@joejames.io> | 2016-11-08 06:37:02 +0000 |
commit | 903431e8895ba196edc7ce67d46279d0d06cba1d (patch) | |
tree | 33df8e02e93f82667e472a027bb3f163a4eef766 /features | |
parent | a6b4975724c50bc09206c0201f159c65e610859e (diff) | |
download | gitlab-ce-903431e8895ba196edc7ce67d46279d0d06cba1d.tar.gz |
Move 'Explore Snippets' Spinach feature to Rspec
This commit moves the `snippets/discover.feature` Spinach test to a
Rspec feature, as part of deprecating the Spinach test suite.
The original feature was called 'Discover Snippets', but the UI no
longer reflects this wording. The new Rspec feature is called
'Explore Snippets' to reflect UI/Controller/View naming in use.
- Remove Spinach discover snippets feature and steps
- Add Rspec feature test
Diffstat (limited to 'features')
-rw-r--r-- | features/snippets/discover.feature | 13 | ||||
-rw-r--r-- | features/steps/snippets/discover.rb | 21 |
2 files changed, 0 insertions, 34 deletions
diff --git a/features/snippets/discover.feature b/features/snippets/discover.feature deleted file mode 100644 index 1a7e132ea25..00000000000 --- a/features/snippets/discover.feature +++ /dev/null @@ -1,13 +0,0 @@ -@snippets -Feature: Snippets Discover - Background: - Given I sign in as a user - And I have public "Personal snippet one" snippet - And I have private "Personal snippet private" snippet - And I have internal "Personal snippet internal" snippet - - Scenario: I should see snippets - Given I visit snippets page - Then I should see "Personal snippet one" in snippets - And I should see "Personal snippet internal" in snippets - And I should not see "Personal snippet private" in snippets diff --git a/features/steps/snippets/discover.rb b/features/steps/snippets/discover.rb deleted file mode 100644 index 76379d09d02..00000000000 --- a/features/steps/snippets/discover.rb +++ /dev/null @@ -1,21 +0,0 @@ -class Spinach::Features::SnippetsDiscover < Spinach::FeatureSteps - include SharedAuthentication - include SharedPaths - include SharedSnippet - - step 'I should see "Personal snippet one" in snippets' do - expect(page).to have_content "Personal snippet one" - end - - step 'I should see "Personal snippet internal" in snippets' do - expect(page).to have_content "Personal snippet internal" - end - - step 'I should not see "Personal snippet private" in snippets' do - expect(page).not_to have_content "Personal snippet private" - end - - def snippet - @snippet ||= PersonalSnippet.find_by!(title: "Personal snippet one") - end -end |