views:

50

answers:

0

I have a series of rspec tests which I use to make sure some web scraping services I wrote are still valid. I have all of these inside a GEM which my rails app requires and I'm not quite sure how to embed a rake task of spec for an external gem?

I'm not sure that is at all clear, I have a gem w/rspecs:

Gem w/rspecs
MyApp

I would like to make a rake task from my rails app which runs a few of the rspec examples from the gem and if any of them fail to send me an email. How can I do this from within a rake task?

Thanks