Thanks Fred. It seems that the ar_plugin_skeleton is what I needed.
Thanks, Arthur Frederick Cheung wrote: > On Dec 3, 9:13�am, Arthur Chan <[EMAIL PROTECTED]> > wrote: >> Guys, >> >> I've created a plugin, i wanna put my automated test there. >> >> However, I got bad file descriptor error when i run the test like normal >> unit test file: >> "ruby plugins/acts_as_fox/test/acts_as_fox_test.rb" >> >> How to test a plugin? >> > Well what I do is based on a skeleton plugin I have here: > http://github.com/fcheung/ar_plugin_skeleton/tree/master > > It doesn't do functional tests but that's basically a case of adding > > require 'action_controller/test_case' > require 'action_controller/test_process' > > ActionController::Routing::Routes.draw do |map| > # Install the default route as the lowest priority. > map.connect ':controller/:action/:id' > end > ActionController::Base.view_paths = [Test::Unit::TestCase.fixture_path > + 'views/'] > > to the test helper file > > Fred -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

