diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-08-10 18:31:42 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-08-10 19:29:42 -0400 |
commit | c8b802471bcb6ea9ea7af3c7a139598a1f945230 (patch) | |
tree | fb3fe5c094d8a831ede19d4ff2f1471914744907 /spec/features/triggers_spec.rb | |
parent | 4ef10795ce5e24dc0f905daeb7236fe707a8c195 (diff) | |
download | gitlab-ce-c8b802471bcb6ea9ea7af3c7a139598a1f945230.tar.gz |
Enable the RSpec/HookArgument cop and auto-correct offenses
Diffstat (limited to 'spec/features/triggers_spec.rb')
-rw-r--r-- | spec/features/triggers_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/triggers_spec.rb b/spec/features/triggers_spec.rb index 8d12a492feb..47664de469a 100644 --- a/spec/features/triggers_spec.rb +++ b/spec/features/triggers_spec.rb @@ -82,7 +82,7 @@ feature 'Triggers', js: true do end describe 'trigger "Take ownership" workflow' do - before(:each) do + before do create(:ci_trigger, owner: user2, project: @project, description: trigger_title) visit project_settings_ci_cd_path(@project) end @@ -104,7 +104,7 @@ feature 'Triggers', js: true do end describe 'trigger "Revoke" workflow' do - before(:each) do + before do create(:ci_trigger, owner: user2, project: @project, description: trigger_title) visit project_settings_ci_cd_path(@project) end |