From 02dc5011fe8e1553f09432d6b1839ba7e563ef6a Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Fri, 11 Mar 2022 11:35:19 -0800 Subject: [PATCH] Show feedback upon survey response Resolves: Failures: 1) Survey as an attendee respond to a survey during registration Failure/Error: expect(flash).to eq('Successfully responded to survey.') expected: "Successfully responded to survey." got: "none" (compared using ==) # ./spec/features/surveys_spec.rb:49:in `block (3 levels) in ' Failed examples: rspec ./spec/features/surveys_spec.rb:37 # Survey as an attendee respond to a survey during registration --- app/controllers/surveys_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/surveys_controller.rb b/app/controllers/surveys_controller.rb index fdf24963..a5c9fd0d 100644 --- a/app/controllers/surveys_controller.rb +++ b/app/controllers/surveys_controller.rb @@ -40,6 +40,6 @@ class SurveysController < ApplicationController end end - redirect_back(fallback_location: root_path) + redirect_back(fallback_location: root_path, notice: 'Successfully responded to survey.') end end