Permalink
Browse files

Fix failing test added in previous commit.

  • Loading branch information...
1 parent 306123b commit 4bc6e2f8a752ac408214a9284789efbfdaaf7313 @josevalim josevalim committed Oct 4, 2011
Showing with 12 additions and 4 deletions.
  1. +12 −4 actionpack/lib/sprockets/assets.rake
View
16 actionpack/lib/sprockets/assets.rake
@@ -58,10 +58,18 @@ namespace :assets do
end
desc "Remove compiled assets"
- task :clean => ["assets:environment", "tmp:cache:clear"] do
- config = Rails.application.config
- public_asset_path = File.join(Rails.public_path, config.assets.prefix)
- rm_rf public_asset_path, :secure => true
+ task :clean do
+ ENV["RAILS_GROUPS"] ||= "assets"
+ ENV["RAILS_ENV"] ||= "production"
+ ruby_rake_task "assets:clean:all"
+ end
+
+ namespace :clean do
+ task :all => ["assets:environment", "tmp:cache:clear"] do
+ config = Rails.application.config
+ public_asset_path = File.join(Rails.public_path, config.assets.prefix)
+ rm_rf public_asset_path, :secure => true
+ end
end
task :environment do

0 comments on commit 4bc6e2f

Please sign in to comment.