diff --git a/spec/controllers/posts_controller_spec.rb b/spec/controllers/posts_controller_spec.rb index 2efaad4f96966c2c0d8c5c550989ed666ce3bdbc..f6231596e52e3c2efdc8b0e0beda0351ed5217a2 100644 --- a/spec/controllers/posts_controller_spec.rb +++ b/spec/controllers/posts_controller_spec.rb @@ -30,6 +30,7 @@ describe PostsController do response.should be_success end + it 'succeeds on mobile with a reshare' do get :show, "id" => Factory(:reshare, :author => alice.person).id, :format => :mobile response.should be_success @@ -60,6 +61,14 @@ describe PostsController do response.status.should == 200 end + it 'succeeds for statusnet' do + pending "StatusNet send a weird ACCEPT header" + status = alice.post(:status_message, :text => "hello", :public => true, :to => 'all') + @request.env["HTTP_ACCEPT"] = "application/html+xml,text/html" + get :show, :id => status.id + response.should be_success + end + it 'shows a public photo' do pending status = Factory(:status_message_with_photo, :public => true, :author => alice.person)