Testing rails plugins standalone

I’d like to finally get started with RSpec, however, not on a complete
(rails or whatever) application, but only on a single rails plugin. In
particular, I want to test the plugin without the context of a specific
rails app. The only parts of rails that I need are ActiveRecord and
ActiveSupport.

It would be very helpful to have an existing plugin that’s tested like
this as a guideline. Any suggestions?

Thanks,
Michael


Michael S.
mailto:[email protected]
http://www.schuerig.de/michael/

On May 27, 2008, at 8:04 AM, Michael S. wrote:

I’d like to finally get started with RSpec, however, not on a complete
(rails or whatever) application, but only on a single rails plugin. In
particular, I want to test the plugin without the context of a
specific
rails app. The only parts of rails that I need are ActiveRecord and
ActiveSupport.

It would be very helpful to have an existing plugin that’s tested like
this as a guideline. Any suggestions?

My FixtureReplacement plugin tests against ActiveRecord models - You
might want to check that out. (Many thanks to Wincent, I believe, who
set it all up for me).

Also, Webrat is quite popular - I’d bet that has some good specs.

Scott