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: