Random extra spec for people_controller

This commit is contained in:
Sarah Mei 2010-12-04 18:13:15 -08:00
parent 23eb192524
commit c9f7866955

View file

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