Skip to content

Instantly share code, notes, and snippets.

@nmk
Created July 1, 2010 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmk/459793 to your computer and use it in GitHub Desktop.
Save nmk/459793 to your computer and use it in GitHub Desktop.
it "..." do
put :update, :id => @user.id, "user" => { ... }
assigns(:user).should_receive(:update_attributes).once # doesn't pass
end
it "..." do
assigns(:user).should_receive(:update_attributes).once # assigns(:user) is nil
put :update, :id => @user.id, "user" => { ... }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment