Re: [rspec-users] rspect weird problem

2011-12-06 Thread Andres M.
no, that didn't work, but i found that i may be due to garbage collector taking place before test starts, so the solution was to add a set called instances and then in the initialize method put the following code line "instances << self", this way my instances had a root, preventing the garbage

Re: [rspec-users] rspect weird problem

2011-12-06 Thread Patrick J. Collins
> 1) Motorcycle finding a motorcycle by name should return an instance > of the Motorcycle class > Failure/Error: Unable to find matching line from backtrace >expected 0 to be a kind of Motorcycle > # ./motoapp.rb:75 I also am noticing that you don't have any sort of setup for

Re: [rspec-users] rspect weird problem

2011-12-06 Thread Andres M.
Patrick Collins wrote in post #1035294: >> Motrocicle.create > > I don't know if this helps, but I am pretty sure "Motrocicle.create" > isn't what > you intended to call. > > Also, I'd like to point out that: > >> def self.find (name) >> found = nil >> ObjectSpace.each_obj

Re: [rspec-users] rspect weird problem

2011-12-05 Thread Patrick J. Collins
> Motrocicle.create I don't know if this helps, but I am pretty sure "Motrocicle.create" isn't what you intended to call. Also, I'd like to point out that: > def self.find (name) > found = nil > ObjectSpace.each_object(Motorcycle) { |o| > found = o if o.name =