Pending spec for statusnet linkback plugin
This commit is contained in:
parent
3c34749dd7
commit
cd640e1ac6
1 changed files with 9 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ describe PostsController do
|
||||||
response.should be_success
|
response.should be_success
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
it 'succeeds on mobile with a reshare' do
|
it 'succeeds on mobile with a reshare' do
|
||||||
get :show, "id" => Factory(:reshare, :author => alice.person).id, :format => :mobile
|
get :show, "id" => Factory(:reshare, :author => alice.person).id, :format => :mobile
|
||||||
response.should be_success
|
response.should be_success
|
||||||
|
|
@ -60,6 +61,14 @@ describe PostsController do
|
||||||
response.status.should == 200
|
response.status.should == 200
|
||||||
end
|
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
|
it 'shows a public photo' do
|
||||||
pending
|
pending
|
||||||
status = Factory(:status_message_with_photo, :public => true, :author => alice.person)
|
status = Factory(:status_message_with_photo, :public => true, :author => alice.person)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue