[Ruby] testing advice
Geoffrey Grosenbach
boss at topfunky.com
Fri Feb 9 10:53:26 PST 2007
On Fri, Feb 09, 2007 at 09:14:54AM -0800, ben wiseley wrote:
> Since it's a very database search specific plugin I was thinking the
> best way to do this would be to create a separate testing rails app. Is
> this the wrong way to go about testing plugins?
I wrote a plugin that generates files for testing database-powered plugins against a sqlite database. You can write unit tests and make fixtures just like you would with a normal Rails app (but it's done inside the plugin).
http://topfunky.net/svn/plugins/plugin_test/
For an example in use, see
http://topfunky.net/svn/plugins/ar_fixtures/
http://topfunky.net/svn/plugins/ar_fixtures/test/ar_fixtures_test.rb
Geoffrey Grosenbach
........................
Blog | http://nubyonrails.com
Podcast | http://podcast.rubyonrails.com
Screencast | http://peepcode.com
More information about the Ruby
mailing list