[rspec-users] Testing rails plugins standalone

Scott Taylor mailing_lists at railsnewbie.com
Tue May 27 10:20:27 EDT 2008

On May 27, 2008, at 8:04 AM, Michael Schuerig 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.


More information about the rspec-users mailing list