Add spec for updating order cycle, minor fixes

This commit is contained in:
Rohan Mitchell
2013-01-10 15:29:13 +11:00
parent 31ea8540ea
commit 4e78fa19a3
3 changed files with 38 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ module Admin
if @order_cycle.update_attributes(params[:order_cycle])
OpenFoodWeb::OrderCycleFormApplicator.new(@order_cycle).go!
flash[:notice] = 'Your order cycle has been saved.'
flash[:notice] = 'Your order cycle has been updated.'
format.html { redirect_to admin_order_cycles_path }
format.json { render :json => {:success => true} }
else