David James
2007-Sep-15 13:05 UTC
[rspec-users] How to write a plugin that uses rspec internally?
My team is working on a plugin and we want to use RSpec internally for the plugin''s tests. (a) What are some different ways to go about this? Should we rely on the RSpec gem? Should we expect that the "host" Rails application has installed the RSpec plugins? Are there other options? (b) Which approach from (a) would you recommend? (c) Would you recommend any particular plugins to study along these lines? Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070915/ed2970b6/attachment.html
Pat Maddox
2007-Sep-15 16:37 UTC
[rspec-users] How to write a plugin that uses rspec internally?
On 9/15/07, David James <davidj503 at gmail.com> wrote:> My team is working on a plugin and we want to use RSpec internally for the > plugin''s tests. > > (a) What are some different ways to go about this? Should we rely on the > RSpec gem? Should we expect that the "host" Rails application has installed > the RSpec plugins? Are there other options? > > (b) Which approach from (a) would you recommend? > > (c) Would you recommend any particular plugins to study along these lines? > > Thanks, > David > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >Hey David, I wrote a plugin generator that uses RSpec instead of Test::Unit. Another little improvement is that it''ll create and hook up a schema.rb file so that you can use a separate db for your specs. Check it out at http://evang.eli.st/blog/2007/4/4/rspec_plugin-generator Users will need rspec if they want to run the specs. If they just want the plugin though and don''t care about running the specs, there''s no dependency on rspec. Pat
David James
2007-Sep-16 02:23 UTC
[rspec-users] How to write a plugin that uses rspec internally?
Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070915/2650accc/attachment.html
Eivind Uggedal
2007-Sep-16 20:36 UTC
[rspec-users] How to write a plugin that uses rspec internally?
On 9/15/07, David James <davidj503 at gmail.com> wrote:> (c) Would you recommend any particular plugins to study along these lines?I recently (a few minutes ago) released a plugin using RSpec to test it''s code: http://acts-as-authentable.googlecode.com/ -- Cheers, Eivind Uggedal Engineer, Faculty of Social Science, MSc Computer Science, University of Oslo