Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
require File.dirname(__FILE__) + '/../spec_helper' describe Node, "instance" do before(:each) do @language = mock_model(Language, :name => "Japanese") @node = Node.new(:language => @language) @section1 = Node.new() @chapter1 = Node.new() @node.stub!(:root?).and_return(true) @section1.stub!(:root?).and_return(false) @chapter1.stub!(:root?).and_return(false) end it "should return it's own language if it is root" do # Passes @node.language_name.should == "Japanese" end it "should return it's parent's language if it is a child" do # Fails (message below) @section1.stub!(:parent).and_return(@node) @chapter1.stub!(:parent).and_return(@section1) @section1.language_name.should == "Japanese" @chapter1.language_name.should == "Japanese" end end