diff --git a/spec/controllers/sockets_controller_spec.rb b/spec/controllers/sockets_controller_spec.rb index 37f59a831..b7d7c037b 100644 --- a/spec/controllers/sockets_controller_spec.rb +++ b/spec/controllers/sockets_controller_spec.rb @@ -30,9 +30,8 @@ describe SocketsController do end it 'should actionhash photos' do - pending "Figure out how to make the photo posting api work in specs, it needs a file type" @album = @user.post(:album, :name => "Loser faces", :to => @aspect.id) - photo = @user.post(:photo, :album_id => @album.id, :user_file => [File.open(@fixture_name)]) + photo = @user.post(:photo, :album_id => @album.id, :user_file => File.open(@fixture_name)) json = @controller.action_hash(@user.id, photo, :aspect_ids => @user.aspects_with_post(@album.id).map{|g| g.id}) json.include?('photo').should be_true end