diff options
Diffstat (limited to 'spec/requests/api/alert_management_alerts_spec.rb')
-rw-r--r-- | spec/requests/api/alert_management_alerts_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/api/alert_management_alerts_spec.rb b/spec/requests/api/alert_management_alerts_spec.rb index 99293e5ae95..680a3883387 100644 --- a/spec/requests/api/alert_management_alerts_spec.rb +++ b/spec/requests/api/alert_management_alerts_spec.rb @@ -140,7 +140,7 @@ RSpec.describe API::AlertManagementAlerts do project.send("add_#{user_role}", user) end - it_behaves_like "#{params[:expected_status]}" + it_behaves_like params[:expected_status].to_s end context 'file size too large' do @@ -245,7 +245,7 @@ RSpec.describe API::AlertManagementAlerts do project.update!(visibility_level: Gitlab::VisibilityLevel::PRIVATE) unless public_project end - it_behaves_like "#{params[:expected_status]}" + it_behaves_like params[:expected_status].to_s end end @@ -293,7 +293,7 @@ RSpec.describe API::AlertManagementAlerts do project.update!(visibility_level: Gitlab::VisibilityLevel::PRIVATE) unless public_project end - it_behaves_like "#{params[:expected_status]}" + it_behaves_like params[:expected_status].to_s end context 'when user has access' do @@ -368,7 +368,7 @@ RSpec.describe API::AlertManagementAlerts do project.update!(visibility_level: Gitlab::VisibilityLevel::PRIVATE) unless public_project end - it_behaves_like "#{params[:expected_status]}" + it_behaves_like params[:expected_status].to_s end context 'when user has access' do |