Fix inflection

This commit is contained in:
Oliver Günther
2024-10-15 10:56:10 +02:00
parent 15490f22f1
commit 7ecd5df472
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -248,6 +248,7 @@ RSpec/DescribeMethod:
# to match the exact file name
RSpec/SpecFilePathFormat:
CustomTransform:
OpenIDConnect: openid_connect
OAuthClients: oauth_clients
IgnoreMethods: true
+2
View File
@@ -34,6 +34,8 @@ OpenProject::Inflector.rule do |basename, abspath|
"OAuth#{default_inflect($1, abspath)}"
when /\A(.*)_oauth\z/
"#{default_inflect($1, abspath)}OAuth"
when "openid_connect"
"OpenIDConnect"
when "oauth"
"OAuth"
when /\Aclamav_(.*)\z/