Re: RSpec Story - SystemStackError: stack level too deep

Hi Ben,

This is probably not an rspec issue, but a rails defect
( http://dev.rubyonrails.org/ticket/10896 ).

From your code, I am assuming you are story testing a Rails app. I was
bitten by this too recently… Took me a while to figure it out. The
workaround is to replace

post.id

by

post[:id]

Looks ugly, but it works.

On your second question, my guess is the script/install plugin from git
only works as of rails 2.1.0 . At least that is what I understood from
reading

I followed the steps under “Install an RSpec release >= 1.1.4:” and that
worked on 2.0.2 .

Hope this helps,

Willem van den Ende
p.s. I just joined the mailing list and found Ben’s question in the
archive. it didn’t seem to have an answer yet. apologies for double
posting if it already has
p.s II. I got hooked on story testing after seeing David C.'s
presentation at qcon london this spring.

On June 5, Ben M. Wrote:

Willem van den Ende wrote:

Hi Ben,

This is probably not an rspec issue, but a rails defect
( http://dev.rubyonrails.org/ticket/10896 ).

From your code, I am assuming you are story testing a Rails app. I was
bitten by this too recently… Took me a while to figure it out. The
workaround is to replace

post.id

by

post[:id]

Thank you so much Willem, I only just saw your post and it did indeed
fix my issue.