added test for edit

This commit is contained in:
maxwell 2011-03-11 14:52:56 -08:00
parent 52b970098b
commit 580f0576c8

View file

@ -120,5 +120,11 @@ describe UsersController do
get 'edit', :id => @user.id get 'edit', :id => @user.id
response.status.should == 200 response.status.should == 200
end end
it 'set @email_pref to false when there is a user pref' do
@user.user_preferences.create(:email_type => 'mentioned')
get 'edit', :id => @user.id
assigns[:email_prefs]['mentioned'].should be_false
end
end end
end end