From cc5ff3b5a4d63dd079e02029be36646261770f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D=C3=A1vila?= Date: Thu, 18 Feb 2016 18:24:53 -0500 Subject: [PATCH] Use the adequate success path on the JSON endpoint. I forgot to update this and some spinach specs were failing. --- app/controllers/concerns/creates_commit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/concerns/creates_commit.rb b/app/controllers/concerns/creates_commit.rb index 4410e4d6505..787416c17ab 100644 --- a/app/controllers/concerns/creates_commit.rb +++ b/app/controllers/concerns/creates_commit.rb @@ -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]