On 7/18/07, Mikel Lindsaar [EMAIL PROTECTED] wrote:
Hello list,
I think I have a rails related RSpec problem with a mock going out of
scope on a recursive call to a model.
The code is at: http://pastie.textmate.org/79821 if you want to see it
highlighted. I have pasted it below as well.
Here are the errors I'm getting now:
1)
NoMethodError in 'Node instance should return it's parent's language
if it is a child'
undefined method `move_to_child_of' for #Node:0x34d3110
./spec/models/node_spec.rb:20:
2)
NameError in 'Node instance should return it's own language if it is root'
Crap, I totally, forgot to mention, sorry David. I am using betternestedset
http://wiki.rubyonrails.org/rails/pages/BetterNestedSet
script/plugin source svn://rubyforge.org/var/svn/betternestedset
script/plugin install betternestedset
Regards
Mikel
On 7/19/07, David Chelimsky [EMAIL