From c9f7866955c79b800b8253e8ec2ceb055c6272c8 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sat, 4 Dec 2010 18:13:15 -0800 Subject: [PATCH] Random extra spec for people_controller --- spec/controllers/people_controller_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/controllers/people_controller_spec.rb b/spec/controllers/people_controller_spec.rb index 9a34e8230..2a2de0b9a 100644 --- a/spec/controllers/people_controller_spec.rb +++ b/spec/controllers/people_controller_spec.rb @@ -102,6 +102,17 @@ describe PeopleController do end describe '#update' do + it "sets the flash" do + put :update, "id" => user.person.id.to_s, "person" => { + "profile" => { + "image_url" => "", + "last_name" => "Smith", + "first_name" => "Will" + } + } + flash[:notice].should_not be_empty + end + context 'with a profile photo set' do before do @params = { :profile =>