mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
Merge pull request #1901 from vikhyat/fill-plugin-spec-glob
Fix plugin:spec rake task to include subdirectories.
This commit is contained in:
commit
311a44240f
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ desc 'run plugin specs'
|
||||||
task 'plugin:spec', :plugin do |t, args|
|
task 'plugin:spec', :plugin do |t, args|
|
||||||
args.with_defaults(plugin: "**")
|
args.with_defaults(plugin: "**")
|
||||||
ruby = `which ruby`.strip
|
ruby = `which ruby`.strip
|
||||||
files = Dir.glob("./plugins/#{args[:plugin]}/spec/*.rb")
|
files = Dir.glob("./plugins/#{args[:plugin]}/spec/**/*.rb")
|
||||||
if files.length > 0
|
if files.length > 0
|
||||||
sh "LOAD_PLUGINS=true #{ruby} -S rspec #{files.join(' ')}"
|
sh "LOAD_PLUGINS=true #{ruby} -S rspec #{files.join(' ')}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue