I''m investigating something that I''m not sure if it''s a problem with my app, or with Rails. I''m writing an active_Record test in base_test.rb to check it (and finding that it''s passing when I don''t think it should). I''d like to run this test all by itself so I can easily tail the debug.log to see the precise SQL calls it''s generating. Is there an easy way to do this? In the Rails app I know I can run "ruby test/units/some_test.rb -n test_something" to just run test_something, but I can seem to find what additional parameter to pass to "rake test_mysql TEST=base_test.rb" to get a similar effect. -- http://www.5valleys.com/ http://www.workingwithrails.com/person/8078 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Instead of using rake, do it like : ruby -I"connections/native_mysql" base_test.rb -n whatever_test On Nov 14, 2007 12:57 AM, Jon Garvin <jgarvin.lists@gmail.com> wrote:> > I''m investigating something that I''m not sure if it''s a problem with my > app, or with Rails. I''m writing an active_Record test in base_test.rb > to check it (and finding that it''s passing when I don''t think it > should). I''d like to run this test all by itself so I can easily tail > the debug.log to see the precise SQL calls it''s generating. Is there an > easy way to do this? In the Rails app I know I can run "ruby > test/units/some_test.rb -n test_something" to just run test_something, > but I can seem to find what additional parameter to pass to "rake > test_mysql TEST=base_test.rb" to get a similar effect. > > -- > http://www.5valleys.com/ > http://www.workingwithrails.com/person/8078 > > > > >-- Cheers! - Pratik http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Worked Perfectly. Thanks. Pratik wrote:> Instead of using rake, do it like : > > ruby -I"connections/native_mysql" base_test.rb -n whatever_test > > >-- http://www.5valleys.com/ http://www.workingwithrails.com/person/8078 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---