rspec problem stubbing with ActiveRecord assiociations

Hi everybody,

my name is Olaf, I’m living in Berlin and this is my first post. I’m
quite new to rpsec, so please forgive my Newbieness! I’ve a problem
stubbing a simple update action in a controller. I use a little hack to
stub AR associations. So I added to my rspec_helper.rb the following
code:

I solved the problem by using save and partial updates in rails 2.1
instead of update_attributes. Very strange thing!

Um, you spelt ':update_attributes' wrong?

Andrew