David Kahn
2010-Oct-27 22:50 UTC
Anything special needed to migrate test::unit tests from Rails 2x to Rails3?
Looks like I''ve gotten my app upgraded successfully, at least in the browser. When I ''rake test'' I get no love. I know I can start digging through the Rails rake tasks, first want to see if anyone has an idea what is going on: DKMac:creditcompare3 DK$ rake test (in /Users/DK/Documents/ror/projects/creditcompare3) DKMac:creditcompare3 DK$ (requesting verbose fares just as badly using TESTOPTS="-v") Not even an error! I would be happy with an error! Also tried the old single test file with same result: DKMac:creditcompare3 DK$ ruby -I lib:test test/unit/account_test.rb DKMac:creditcompare3 DK$ My test_helper.rb is pretty standard and based on a default Rails 3 app while I added back my code (not posted here): ENV["RAILS_ENV"] = "test" require File.expand_path(''../../config/environment'', __FILE__) require ''rails/test_help'' Is there something I am missing? I ran the rails_upgrade plug in and successfully passed there, so am at a loss. Thanks, David -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Oct-28 15:43 UTC
Re: Anything special needed to migrate test::unit tests from Rails 2x to Rails3?
David Kahn wrote in post #957640:> Looks like I''ve gotten my app upgraded successfully, at least in the > browser. When I ''rake test'' I get no love. I know I can start digging > through the Rails rake tasks, first want to see if anyone has an idea > what > is going on: > > DKMac:creditcompare3 DK$ rake testWhy not take this opportunity to start using RSpec? You''ll probably be a lot happier... Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Kahn
2010-Oct-28 16:00 UTC
Re: Re: Anything special needed to migrate test::unit tests from Rails 2x to Rails3?
On Thu, Oct 28, 2010 at 10:43 AM, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> David Kahn wrote in post #957640: > > Looks like I''ve gotten my app upgraded successfully, at least in the > > browser. When I ''rake test'' I get no love. I know I can start digging > > through the Rails rake tasks, first want to see if anyone has an idea > > what > > is going on: > > > > DKMac:creditcompare3 DK$ rake test > > Why not take this opportunity to start using RSpec? You''ll probably be > a lot happier... >I know, I know, but this is an existing project with a lot of test unit tests. Even if I do add in rspec later, I have to get these tests to run and pass just to know that I have a good upgrade to Rails 3 if nothing else.> > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Oct-28 16:10 UTC
Re: Re: Anything special needed to migrate test::unit tests from Rails 2x to Rails3?
David Kahn wrote in post #957827:> On Thu, Oct 28, 2010 at 10:43 AM, Marnen Laibow-Koser > <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote: > >> a lot happier... >> > > I know, I know, but this is an existing project with a lot of test unit > tests. Even if I do add in rspec later, I have to get these tests to run > and > pass just to know that I have a good upgrade to Rails 3 if nothing else.That''s true, of course. And unfortunately, I haven''t started working with Rails 3, so I can''t really give you good advice there. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Kahn
2010-Oct-28 16:14 UTC
Re: Re: Re: Anything special needed to migrate test::unit tests from Rails 2x to Rails3?
On Thu, Oct 28, 2010 at 11:10 AM, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> David Kahn wrote in post #957827: > > On Thu, Oct 28, 2010 at 10:43 AM, Marnen Laibow-Koser > > <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote: > > > >> a lot happier... > >> > > > > I know, I know, but this is an existing project with a lot of test unit > > tests. Even if I do add in rspec later, I have to get these tests to run > > and > > pass just to know that I have a good upgrade to Rails 3 if nothing else. > > That''s true, of course. And unfortunately, I haven''t started working > with Rails 3, so I can''t really give you good advice there. >No worries. That is why you are still sane :) I just feel like every turn I am pouring in time on little details (having flashbacks to asp.net), but also have picked up Cucumber and rSpec in the process, so I guess some of this is the learning curve on these and should not blame Rails 3.> > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Apparently Analagous Threads
- Search large XML file -- REXML slower than a slug, regex instantaneous
- Toto blog date issue - production only, localhost fine
- Shoulda issue: no more "should have_instance_methods" ?
- Rails 3 Active Record query returns "undefined method `loaded?' for #<Array:0x126a4c>"
- WickedPDF vs PDFKit vs. Prawn, etc.