From fab4e59f7649a3e299f054c018e4fb779f958eaa Mon Sep 17 00:00:00 2001 From: Vikhyat Korrapati Date: Wed, 5 Feb 2014 06:11:49 +0530 Subject: [PATCH] Fix plugin:spec rake task to include subdirectories. --- lib/tasks/plugin.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/plugin.rake b/lib/tasks/plugin.rake index e3a461009..382678c50 100644 --- a/lib/tasks/plugin.rake +++ b/lib/tasks/plugin.rake @@ -47,7 +47,7 @@ desc 'run plugin specs' task 'plugin:spec', :plugin do |t, args| args.with_defaults(plugin: "**") ruby = `which ruby`.strip - files = Dir.glob("./plugins/#{args[:plugin]}/spec/*.rb") + files = Dir.glob("./plugins/#{args[:plugin]}/spec/**/*.rb") if files.length > 0 sh "LOAD_PLUGINS=true #{ruby} -S rspec #{files.join(' ')}" else