two failing tests for the mobile site. SOMEBODY FIX THEM

This commit is contained in:
Maxwell Salzberg 2011-07-29 10:14:59 -07:00
parent 7a43a812bf
commit 9d0764dadb
2 changed files with 10 additions and 0 deletions

View file

@ -123,6 +123,11 @@ describe CommentsController do
@message = bob.post(:status_message, :text => "hey", :to => bob.aspects.first.id)
@comments = [alice, bob, eve].map{ |u| u.comment("hey", :post => @message) }
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
get :index, :post_id => @message.id, :format => 'js'
assigns[:comments].should == @comments

View file

@ -26,6 +26,11 @@ describe PostsController do
response.should be_success
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
alice.comment("comment after me", :post => @message)
bob.comment("here you go", :post => @message)