2
0

Update rubocop-rspec to version 3.6.0 (#34497)

This commit is contained in:
Matt Jankowski
2025-04-24 10:56:13 -04:00
committed by GitHub
parent 22ec828951
commit 6463415e06
41 changed files with 223 additions and 228 deletions

View File

@@ -5,7 +5,7 @@ require 'rails_helper'
RSpec.describe Auth::RegistrationsController do
render_views
shared_examples 'checks for enabled registrations' do |path|
shared_examples 'registration mode based responses' do |path|
context 'when in single user mode and open for registration' do
before do
Setting.registrations_mode = 'open'
@@ -156,7 +156,7 @@ RSpec.describe Auth::RegistrationsController do
end
end
include_examples 'checks for enabled registrations', :new
it_behaves_like 'registration mode based responses', :new
end
describe 'POST #create' do
@@ -378,7 +378,7 @@ RSpec.describe Auth::RegistrationsController do
end
end
include_examples 'checks for enabled registrations', :create
it_behaves_like 'registration mode based responses', :create
end
describe 'DELETE #destroy' do