From db23e10efa94368835b00e9ecef830fcdd472698 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 21 May 2018 15:19:10 +1000 Subject: [PATCH] DEV: watch plugin.rb in autospec --- lib/autospec/rspec_runner.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/autospec/rspec_runner.rb b/lib/autospec/rspec_runner.rb index d09acd54500..34e4043df30 100644 --- a/lib/autospec/rspec_runner.rb +++ b/lib/autospec/rspec_runner.rb @@ -23,6 +23,7 @@ module Autospec watch(%r{^plugins/.*/discourse-markdown/.*\.js\.es6$}) { "spec/components/pretty_text_spec.rb" } watch(%r{^plugins/.*/spec/.*\.rb}) + watch(%r{^(plugins/.*/)plugin\.rb}) { |m| "#{m[1]}spec" } watch(%r{^(plugins/.*)/(lib|app)}) { |m| "#{m[1]}/spec/integration" } watch(%r{^(plugins/.*)/lib/(.*)\.rb}) { |m| "#{m[1]}/spec/lib/#{m[2]}_spec.rb" }