Are the Railties tests current and passing at the moment? I ask because I found an old thread saying that they''re neglected [1], but I can''t find any recent discussions. -Nick [1] http://tinyurl.com/acuhkr --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Tue, Feb 10, 2009 at 4:46 PM, Nick Hoffman <nick@deadorange.com> wrote:> > Are the Railties tests current and passing at the moment? I ask > because I found an old thread saying that they''re neglected [1], but I > can''t find any recent discussions. > -Nick > > [1] http://tinyurl.com/acuhkrWell, SOME of them are running and passing as of right now. See http://ci.rubyonrails.org/builds/rails , open Build Log, and search for RailTies. Look in /ci/ci_setup_notes.txt for a procedure to reproduce a working test environment. -- Chad --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Feb 11, 5:01 am, Chad Woolley <thewoolley...@gmail.com> wrote:> On Tue, Feb 10, 2009 at 4:46 PM, Nick Hoffman <n...@deadorange.com> wrote: > > > Are the Railties tests current and passing at the moment? I ask > > because I found an old thread saying that they''re neglected [1], but I > > can''t find any recent discussions. > > -Nick > > > [1]http://tinyurl.com/acuhkr > > Well, SOME of them are running and passing as of right now. Seehttp://ci.rubyonrails.org/builds/rails, open Build Log, and search > for RailTies. Look in /ci/ci_setup_notes.txt for a procedure to > reproduce a working test environment. > > -- ChadThanks, Chad. After reading through that, I''m wondering how one should run a specific RailTies test file, rather than the entire suite. This approach seems to work, but spits out 39 warnings for me: rails/railties$ rake regular_test TEST=test/initializer_test.rb This approach fails: rails/railties$ ruby test/initializer_test.rb test/initializer_test.rb:1:in `require'': no such file to load -- abstract_unit (LoadError) from test/initializer_test.rb:1 Any suggestions? -Nick --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 11 Feb 2009, at 17:29, Nick Hoffman wrote:> > This approach fails: > rails/railties$ ruby test/initializer_test.rb > test/initializer_test.rb:1:in `require'': no such file to load -- > abstract_unit (LoadError) > from test/initializer_test.rb:1 >try ruby -Itest test/initializer_test.rb Fred> Any suggestions? > -Nick > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Wed, Feb 11, 2009 at 10:11 AM, Frederick Cheung <frederick.cheung@gmail.com> wrote:> > > On 11 Feb 2009, at 17:29, Nick Hoffman wrote: >> >> This approach fails: >> rails/railties$ ruby test/initializer_test.rb >> test/initializer_test.rb:1:in `require'': no such file to load -- >> abstract_unit (LoadError) >> from test/initializer_test.rb:1 >> > > try > > ruby -Itest test/initializer_test.rb > > Fred > >> Any suggestions? >> -Nickor `rake TEST=test/initializer_test.rb` jeremy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Feb 11, 1:11 pm, Frederick Cheung <frederick.che...@gmail.com> wrote:> On 11 Feb 2009, at 17:29, Nick Hoffman wrote: > > > This approach fails: > > rails/railties$ ruby test/initializer_test.rb > > test/initializer_test.rb:1:in `require'': no such file to load -- > > abstract_unit (LoadError) > > from test/initializer_test.rb:1 > > try > > ruby -Itest test/initializer_test.rb > > FredThanks Fred, that works! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Feb 11, 1:20 pm, Jeremy Kemper <jer...@bitsweat.net> wrote:> On Wed, Feb 11, 2009 at 10:11 AM, Frederick Cheung > > <frederick.che...@gmail.com> wrote: > > > On 11 Feb 2009, at 17:29, Nick Hoffman wrote: > > >> This approach fails: > >> rails/railties$ ruby test/initializer_test.rb > >> test/initializer_test.rb:1:in `require'': no such file to load -- > >> abstract_unit (LoadError) > >> from test/initializer_test.rb:1 > > > try > > > ruby -Itest test/initializer_test.rb > > > Fred > > >> Any suggestions? > >> -Nick > > or `rake TEST=test/initializer_test.rb` > > jeremyActually, that resulted in all of the tests in test/ being run: http://pastie.org/386208 -Nick --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
After reading through railties/test/initializer_test.rb and other test files, I''ve noticed that there aren''t any tests for reading the database configuration file, or for establishing the database connection. This is my first time writing a patch for Rails. Thus, I''m not sure how to begin writing tests for changes that I make to the following methods: Rails::Initializer#initialize_database Rails::Configuration#database_configuration When someone has a minute, would you mind pointing me to some docs, a tutorial, or explaining how I should approach this? Thanks guys. Nick --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---