Skip to content
代码片段 群组 项目
  • Joe Woodward's avatar
    be166074
    Match namespaced factories in Migration/EnsureFactoryForTable Cop · be166074
    Joe Woodward 创作于
    Before this change we only matched tables against their file name e.g.
    
    ```ruby
    create_table :projects_branch_rules_squash_options do
    ```
    
    Would require a factory stored in:
    
    `spec/factories/projects_branch_rules_squash_options.rb`
    
    However, we often use namespacing to retain some structure within the
    codebase. This change allows us to specify a factory in:
    
    `spec/factories/projects/branch_rules/squash_options.rb`
    未验证
    be166074
    历史
    Match namespaced factories in Migration/EnsureFactoryForTable Cop
    Joe Woodward 创作于
    Before this change we only matched tables against their file name e.g.
    
    ```ruby
    create_table :projects_branch_rules_squash_options do
    ```
    
    Would require a factory stored in:
    
    `spec/factories/projects_branch_rules_squash_options.rb`
    
    However, we often use namespacing to retain some structure within the
    codebase. This change allows us to specify a factory in:
    
    `spec/factories/projects/branch_rules/squash_options.rb`
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。