After I installed the very sweet file_column plugin I get strange output on my html pages. At the very end I always get something like this: "Loaded suite dispatch.cgi Started Finished in 0.000218 seconds. 0 tests, 0 assertions, 0 failures, 0 errors " Seems like there is executed a non existent test suite for every page load. Can anybody help me find the lines that force this behaviour ? Thanks Gernot Kogler -- Posted via http://www.ruby-forum.com/.
You only have to require ''test/unit'' for that to happen, not actually define any test suites. If you can''t figure out where/why it is being required, set Test::Unit.run = true and it won''t run automatically like you are seeing. -Jonathan. On 3/14/06, Gernot Kogler <gernot@kogler-informatik.ch> wrote:> > After I installed the very sweet file_column plugin I get strange output > on my html pages. At the very end I always get something like this: > > "Loaded suite dispatch.cgi Started Finished in 0.000218 seconds. 0 > tests, 0 assertions, 0 failures, 0 errors " > > Seems like there is executed a non existent test suite for every page > load. Can anybody help me find the lines that force this behaviour ?-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060313/18eae607/attachment.html
Thanks Jonathan! To be more specific, I included this line in config/environment.rb (after the "Include your application configuration below comment): Test::Unit.run = true - Nithin On 3/13/06, Jonathan Viney <jonathan.viney@gmail.com> wrote:> You only have to require ''test/unit'' for that to happen, not actually define > any test suites. If you can''t figure out where/why it is being required, set > Test::Unit.run = true and it won''t run automatically like you are seeing. > > -Jonathan. > > > On 3/14/06, Gernot Kogler <gernot@kogler-informatik.ch> wrote: > > After I installed the very sweet file_column plugin I get strange output > > on my html pages. At the very end I always get something like this: > > > > "Loaded suite dispatch.cgi Started Finished in 0.000218 seconds. 0 > > tests, 0 assertions, 0 failures, 0 errors " > > > > Seems like there is executed a non existent test suite for every page > > load. Can anybody help me find the lines that force this behaviour ? > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
I had the same issue. If you modify the init.rb that came with the plugin (file_column) to comment out the line "require ''test_case'', it fixes the problem. The init.rb would then look like this: # plugin init file for rails # this file will be picked up by rails automatically and # add the file_column extensions to rails require ''file_column'' require ''file_compat'' require ''file_column_helper'' require ''validations'' #require ''test_case'' ActiveRecord::Base.send(:include, FileColumn) ActionView::Base.send(:include, FileColumnHelper) ActiveRecord::Base.send(:include, FileColumn::Validations) Mayank Nithin Reddy wrote:> Thanks Jonathan! > > To be more specific, I included this line in config/environment.rb > (after the "Include your application configuration below comment): > Test::Unit.run = true > > - Nithin-- Posted via http://www.ruby-forum.com/.