I'm creating some gems that can be used within Rails controllers and views. I'd like to be able to test the gems independently. But I've not been able to figure out how to create an instance of Rails inside the gem to test that the gem will work inside a Rails app.
I strongly prefer to use RSpec, but could probably adapt a Test::Unit solution, or just use Test::Unit.
I'd also be interested in similar solutions for Rails plugins.
(I tried Googling, but "rails gem testing" shows me gems that are used for testing, not how to test a gem. I'm pretty sure I've seen an article or 2 on this topic.)