More spec fixing

This commit is contained in:
2014-12-04 19:00:53 +01:00
parent 524140cf60
commit 3941529d0d
6 changed files with 46 additions and 38 deletions
@@ -80,7 +80,7 @@ module Suppliers
format.json { render json: @product_category, status: :created }
else
format.html { render action: "new" }
format.json { render json: @product_category.errors, status: :unprocessable_entity }
format.json { render json: {errors: @product_category.errors}, status: :unprocessable_entity }
end
end
end
@@ -96,7 +96,7 @@ module Suppliers
format.json { render json: @product_category }
else
format.html { render action: "edit" }
format.json { render json: @product_category.errors, status: :unprocessable_entity }
format.json { render json: {errors: @product_category.errors}, status: :unprocessable_entity }
end
end
end