Use the adequate success path on the JSON endpoint.
I forgot to update this and some spinach specs were failing.
This commit is contained in:
parent
b79c8b5228
commit
cc5ff3b5a4
|
@ -17,7 +17,7 @@ module CreatesCommit
|
|||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to final_success_path(success_path) }
|
||||
format.json { render json: { message: "success", filePath: success_path } }
|
||||
format.json { render json: { message: "success", filePath: final_success_path(success_path) } }
|
||||
end
|
||||
else
|
||||
flash[:alert] = result[:message]
|
||||
|
|
Loading…
Reference in New Issue