Commit 29aba34f16a6da82cac26ff6bc7b185b3bf8183e
1 parent
c4d4eae3
Exists in
master
and in
29 other branches
ci:smoke: match changes in views to the corresponding controller tests
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
lib/tasks/ci.rake
@@ -37,6 +37,11 @@ namespace :ci do | @@ -37,6 +37,11 @@ namespace :ci do | ||
37 | tests << t unless tests.include?(t) | 37 | tests << t unless tests.include?(t) |
38 | end | 38 | end |
39 | end | 39 | end |
40 | + if f =~ %r{^app/views/(\w*)/} | ||
41 | + controller = $1 | ||
42 | + t = "test/functional/#{controller}_controller_test.rb" | ||
43 | + tests << t if File.exists?(t) && !tests.include?(t) | ||
44 | + end | ||
40 | end | 45 | end |
41 | 46 | ||
42 | if tests.empty? && features.empty? && changed_plugins.empty? | 47 | if tests.empty? && features.empty? && changed_plugins.empty? |