diff options
author | Francis Irving <francis@mysociety.org> | 2009-11-01 23:44:58 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-11-01 23:44:58 +0000 |
commit | 81fa07c4baa3f3ff01cdb5181d0870f20340cd5b (patch) | |
tree | 813239b211fc4457d89011187194a358879b8673 /spec/controllers/user_controller_spec.rb | |
parent | 8cd53c254afd8c65adb81d44b1509adc764406ad (diff) |
Part of profile photo
Diffstat (limited to 'spec/controllers/user_controller_spec.rb')
-rw-r--r-- | spec/controllers/user_controller_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/controllers/user_controller_spec.rb b/spec/controllers/user_controller_spec.rb index 700618f53..109a95cbc 100644 --- a/spec/controllers/user_controller_spec.rb +++ b/spec/controllers/user_controller_spec.rb @@ -297,6 +297,16 @@ describe UserController, "when changing password" do end +describe UserController, "when using profile photos" do + integrate_views + fixtures :users + + it "should not let you change profile photo if you're not logged in as the user" + user = users(:bob_smith_user) + data = load_file_fixture("parrot.png") + post :profile_photo, { :id => user.id, :data => data } + end +end |