> 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 == name > } > return found > end > Is very inefficient because it's going to keep iterating through all the objects even after it's found the one it's looking for. def self.find(name) ObjectSpace.each_object(Motorcycle) do |o| return o if o.name == name end end Will return found object immediately or nil if nothing is found. Patrick J. Collins http://collinatorstudios.com _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users