Rspec 3 how to test flash messages January 21, 2023 by Tarik You are testing for the presence of flash[:success], but in your controller you are using flash[:notice]