Re: [rspec-users] error: stack level too deep

2010-01-21 Thread Pat Maddox
Please provide more context. There should be a stack trace that tells you at which line the error occurs. This problem typically occurs when you have a method that calls itself and has no return mechanism. Sometimes that can be a sloppily implemented method_missing. I can't see anything obvi

[rspec-users] error: stack level too deep

2010-01-21 Thread aaron zhang
hi, guys i write follow code : it "The default should be based on readers to recommend a book tastes" do @pick_book = mock_model(PickBook) @pick_books = [...@pick_book] @recommend_count = 1 PickBook.should_receive(:recommend_books).with(@recommend_