juliocesar / rack-pagespeed

Page optimizations done at the Rack level
http://rack-pagespeed.heroku.com
241 stars 22 forks source link

Added automatic start and stop of Redis and memcached before running specs #19

Closed czarneckid closed 13 years ago

czarneckid commented 13 years ago

You can now use: rake spec_with_services which will start Redis and memcached before running the specs as well as cleanup those processes after the specs have run. This was convenient for me as I usually don't remember to start/stop those services all the time.

I didn't make spec_with_services the default task run when you run rake by itself. I did make spec the default task so it doesn't complain when usually you want to run the specs by default.

Hope this is useful.

juliocesar commented 13 years ago

I'll have a read on it later and come back to you. Thanks for the contribution!

czarneckid commented 13 years ago

No problem. Let me know if you have questions, but it should be pretty straightforward.