From 4da2f9cf58a5cef935f9f6f6f73bc37f5a944627 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sat, 9 Oct 2010 21:58:46 -0600 Subject: [PATCH] Fix pending spec in SocketsControllerSpec --- spec/controllers/sockets_controller_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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