Commit 9b2ed19be7490967eaee3c884631c1c7e7861e33

Authored by Jared Pace
1 parent c42db17a
Exists in master and in 1 other branch production

Use flash[:success] instead of flash[:notice]

app/controllers/users_controller.rb
... ... @@ -51,7 +51,7 @@ class UsersController < ApplicationController
51 51 @user = User.find(params[:id])
52 52 @user.destroy
53 53  
54   - flash[:notice] = "That's sad. #{@user.name} is no longer part of your team."
  54 + flash[:success[ = "That's sad. #{@user.name} is no longer part of your team."
55 55 redirect_to users_path
56 56 end
57 57  
... ...
spec/controllers/users_controller_spec.rb
... ... @@ -122,7 +122,7 @@ describe UsersController do
122 122  
123 123 it "sets a message to display" do
124 124 delete :destroy, :id => @user.id
125   - request.flash[:notice].should include('no longer part of your team')
  125 + request.flash[:success[.should include('no longer part of your team')
126 126 end
127 127 end
128 128  
... ...