diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-07-05 06:32:05 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-07-05 06:32:05 +0000 |
commit | 3db2f327594e134729a0ca2f48a748bb28ab7d6c (patch) | |
tree | 661033b988897aaf506c0deaf457c2002e17d51b /spec/features/tags/master_deletes_tag_spec.rb | |
parent | baab4cddb091c0aa9649fecc340b8b343747ba83 (diff) | |
download | gitlab-ce-3db2f327594e134729a0ca2f48a748bb28ab7d6c.tar.gz |
Enable Capybara/FeatureMethods cop
Diffstat (limited to 'spec/features/tags/master_deletes_tag_spec.rb')
-rw-r--r-- | spec/features/tags/master_deletes_tag_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/tags/master_deletes_tag_spec.rb b/spec/features/tags/master_deletes_tag_spec.rb index 1d4df2c55a7..1443e259ed9 100644 --- a/spec/features/tags/master_deletes_tag_spec.rb +++ b/spec/features/tags/master_deletes_tag_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -feature 'Master deletes tag' do +describe 'Master deletes tag' do let(:user) { create(:user) } let(:project) { create(:project, :repository, namespace: user.namespace) } @@ -11,7 +11,7 @@ feature 'Master deletes tag' do end context 'from the tags list page', :js do - scenario 'deletes the tag' do + it 'deletes the tag' do expect(page).to have_content 'v1.1.0' delete_first_tag @@ -21,7 +21,7 @@ feature 'Master deletes tag' do end context 'from a specific tag page' do - scenario 'deletes the tag' do + it 'deletes the tag' do click_on 'v1.0.0' expect(current_path).to eq( project_tag_path(project, 'v1.0.0')) @@ -40,7 +40,7 @@ feature 'Master deletes tag' do .and_raise(Gitlab::Git::PreReceiveError, 'Do not delete tags') end - scenario 'shows the error message' do + it 'shows the error message' do delete_first_tag expect(page).to have_content('Do not delete tags') |