Skip to content
代码片段 群组 项目
未验证 提交 97ee2970 编辑于 作者: Peter Leitzen's avatar Peter Leitzen
浏览文件

test_file_finder: Map controllers to requests specs

上级 369d1411
No related branches found
No related tags found
无相关合并请求
...@@ -225,6 +225,19 @@ tests = [ ...@@ -225,6 +225,19 @@ tests = [
explanation: 'Map EE rake tasks', explanation: 'Map EE rake tasks',
source: 'ee/lib/tasks/geo.rake', source: 'ee/lib/tasks/geo.rake',
expected: ['ee/spec/tasks/geo_rake_spec.rb'] expected: ['ee/spec/tasks/geo_rake_spec.rb']
},
{
explanation: 'Map controllers to request specs',
source: 'app/controllers/admin/abuse_reports_controller.rb',
expected: ['spec/requests/admin/abuse_reports_controller_spec.rb']
},
{
explanation: 'Map EE controllers to controller and request specs',
source: 'ee/app/controllers/users_controller.rb',
expected: [
'ee/spec/controllers/users_controller_spec.rb',
'ee/spec/requests/users_controller_spec.rb'
]
} }
] ]
......
...@@ -55,6 +55,10 @@ mapping: ...@@ -55,6 +55,10 @@ mapping:
- source: '(ee/)?app/views/(.+)\.haml' - source: '(ee/)?app/views/(.+)\.haml'
test: '%sspec/views/%s.haml_spec.rb' test: '%sspec/views/%s.haml_spec.rb'
# EE/FOSS controllers should map to request specs
- source: '(ee/)?app/controllers/(.+)\.rb'
test: '%sspec/requests/%s_spec.rb'
# EE/FOSS spec code should map to itself # EE/FOSS spec code should map to itself
- source: '(.+)_spec\.rb' - source: '(.+)_spec\.rb'
test: '%s_spec.rb' test: '%s_spec.rb'
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册