Wrap text
Report abuse
|
|
before(:each) do
@category = mock_model(Category)
controller.stub!(:authenticate).and_return(true)
@category.stub!(:new_record?).and_return(false)
@category.stub!(:new).and_return(@category)
Category.stub!(:find).and_return(@category)
@category.stub!(:destroy).and_return(true)
end
|