diff --git a/app/controllers/super_admin/themes_controller.rb b/app/controllers/super_admin/themes_controller.rb index 0dee094..754e79c 100644 --- a/app/controllers/super_admin/themes_controller.rb +++ b/app/controllers/super_admin/themes_controller.rb @@ -56,7 +56,7 @@ authorize(Theme) begin Theme.find(params[:id]).destroy! - flash[:notice] = _('Theme destroyed successfully') + flash[:notice] = _('Successfully deleted your theme') rescue ActiveRecord::RecordNotFound flash[:alert] = _('There is no theme associated with id %{id}') % { :id => params[:id] } rescue ActiveRecord::RecordNotDestroyed # Unlikely to happen since we don't have callback associated to destroy! but put for safety diff --git a/test/functional/super_admin/themes_controller.test.rb b/test/functional/super_admin/themes_controller.test.rb index b31559e..fa646d5 100644 --- a/test/functional/super_admin/themes_controller.test.rb +++ b/test/functional/super_admin/themes_controller.test.rb @@ -112,6 +112,6 @@ sign_in @user delete(super_admin_theme_path({ id: Theme.first.id })) assert_response :redirect - assert_equal(_('Theme destroyed successfully'), flash[:notice]) + assert_equal(_('Successfully deleted your theme'), flash[:notice]) end end \ No newline at end of file