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 <top (required)>'

    Failed examples:

    rspec ./spec/features/surveys_spec.rb:37 # Survey as an attendee respond to a survey during registration
This commit is contained in:
Andrew Kvalheim 2022-03-11 11:35:19 -08:00
parent b565be2f46
commit 02dc5011fe

View file

@ -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