I would like to submit a patch for the SQLServer AR adapter. In order to do that, I would like to run the unit tests. I read the "RUNNING_UNIT_TESTS" file in the SQL Server adapter distribution, and I''m not exactly sure how to proceed. Here''s the part that I''m having trouble with: "== Requirements The tests of this adapter depend on the existence of rails edge. All the tests defined by rails edge are re-used. For this to work the following directory structure is assumed to exist: #{RAILS_ROOT}/vendor/plugins/adapters/sqlserver #{RAILS_ROOT}/vendor/rails/activerecord/test" So, currently, I have a checked out version of the Rails trunk in one project, and a checked out version of the SQL Server adapter trunk in another project. Neither of these has a vendor directory, since neither of these is a Rails app. (FYI: I have never run edge). Do I need to create a Rails app., then set it up to run edge (so that I get rails under the vendor directory)? Why is the sqlserver stuff under the plugin directory - do I have to copy it there from my SVN client project? I have the patch - I just need to test it, but I need more detail in order to do so. Thanks, Wes Gamble -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Wes Gamble
2008-Feb-29 21:30 UTC
Re: Instructions for running SQLServer AR adapter unit tests
So I went ahead and tried some things... But I''m totally confused. Am I supposed to put edge Rails into the Rails trunk project I have, which is not even a Rails project itself? The activerecord tests are in the Rails trunk - so there''s not even a vendor directory in there to put stuff into. Conversely, creating a separate _Rails_ project, freezing that to edge, and then shoehorning in a copy of the sqlserver adapter into the plugins (?) directory doesn''t work since, as mentioned above, there are no activerecord tests. Is this file structure supposed to be some merge of the Rails trunk and a Rails project? Any help would be appreciated. Thanks, Wes -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---