search for: extension_id

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

2007 Jan 05
4
How To Spec Controllers with Finders
...I''m still struggling with mocks but it seems like this can be done. Forgive the naivety of this question. 1. def change_quantity 2. @line_item = LineItem.find_by_id(params[:id]) 3. unless @line_item.nil? 4. @line_item.update_attribute(:quantity, params[:quantity]) 5. @extension_id = "extension#{params[:id]}" 6. end 7. end Thanks