Random extra spec for people_controller
This commit is contained in:
parent
23eb192524
commit
c9f7866955
1 changed files with 11 additions and 0 deletions
|
|
@ -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 =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue