From 29aba34f16a6da82cac26ff6bc7b185b3bf8183e Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 6 Aug 2015 18:23:35 -0300 Subject: [PATCH] ci:smoke: match changes in views to the corresponding controller tests --- lib/tasks/ci.rake | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 01bde54..139153e 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -37,6 +37,11 @@ namespace :ci do tests << t unless tests.include?(t) end end + if f =~ %r{^app/views/(\w*)/} + controller = $1 + t = "test/functional/#{controller}_controller_test.rb" + tests << t if File.exists?(t) && !tests.include?(t) + end end if tests.empty? && features.empty? && changed_plugins.empty? -- libgit2 0.21.2