From 81fa07c4baa3f3ff01cdb5181d0870f20340cd5b Mon Sep 17 00:00:00 2001 From: Francis Irving Date: Sun, 1 Nov 2009 23:44:58 +0000 Subject: Part of profile photo --- spec/controllers/user_controller_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec/controllers/user_controller_spec.rb') 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 -- cgit v1.2.3