search for: user_1003

Displaying 1 result from an estimated 1 matches for "user_1003".

Did you mean: user_1000
2007 Sep 18
2
rSpec / Nested Routes / Mocks
...tter how I try to fuss with the mock: Spec::Mocks::MockExpectationError in ''ItemsController handling POST / items should redirect to the new course on successful save'' Mock ''Item_1002'' received unexpected message :user= with (#<User: 0x..fdb7bcd38 @name="User_1003">) Any help would be greatly appreciated. Here''s my setup. Problem line indicated with ****** --routes.rb-- map.resources :users do |users| users.resources :items end --items_controller-- def create @item = Item.new(params[:item]) @item.user = User.find(params[:us...