Skip to content
Extraits de code Groupes Projets
Valider 9d0764da rédigé par Maxwell Salzberg's avatar Maxwell Salzberg
Parcourir les fichiers

two failing tests for the mobile site. SOMEBODY FIX THEM

parent 7a43a812
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -123,6 +123,11 @@ describe CommentsController do ...@@ -123,6 +123,11 @@ describe CommentsController do
@message = bob.post(:status_message, :text => "hey", :to => bob.aspects.first.id) @message = bob.post(:status_message, :text => "hey", :to => bob.aspects.first.id)
@comments = [alice, bob, eve].map{ |u| u.comment("hey", :post => @message) } @comments = [alice, bob, eve].map{ |u| u.comment("hey", :post => @message) }
end end
it 'works for mobile' do
get :index, :post_id => @message.id, :format => 'mobile'
response.should be_success
end
it 'returns all the comments for a post' do it 'returns all the comments for a post' do
get :index, :post_id => @message.id, :format => 'js' get :index, :post_id => @message.id, :format => 'js'
assigns[:comments].should == @comments assigns[:comments].should == @comments
......
...@@ -26,6 +26,11 @@ describe PostsController do ...@@ -26,6 +26,11 @@ describe PostsController do
response.should be_success response.should be_success
end end
it 'succeeds on mobile with a reshare' do
get :show, "id" => Factory(:reshare, :author => alice.person), :format => :mobile
response.should be_success
end
it 'marks a corresponding notification as read' do it 'marks a corresponding notification as read' do
alice.comment("comment after me", :post => @message) alice.comment("comment after me", :post => @message)
bob.comment("here you go", :post => @message) bob.comment("here you go", :post => @message)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter