recursively clean compiled fixtures

This commit is contained in:
Mike Greiling 2016-12-30 14:50:07 -06:00
parent 2373082eb0
commit 6370e32699
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ module JavaScriptFixturesHelpers
#
def clean_frontend_fixtures(directory_name)
directory_name = File.expand_path(directory_name, FIXTURE_PATH)
Dir[File.expand_path('*.html.raw', directory_name)].each do |file_name|
Dir[File.expand_path('**/*.html.raw', directory_name)].each do |file_name|
FileUtils.rm(file_name)
end
end