Skip to content

Instantly share code, notes, and snippets.

@moretea
Created January 17, 2012 17:14
Show Gist options
  • Select an option

  • Save moretea/1627560 to your computer and use it in GitHub Desktop.

Select an option

Save moretea/1627560 to your computer and use it in GitHub Desktop.
require "guard/guard"
module ::Guard
class Precompile < ::Guard::Guard
def run_on_change(path)
puts "Precompiling assets for test env ...."
puts `bundle exec rake assets:precompile RAILS_ENV=test`
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment