two failing tests for the mobile site. SOMEBODY FIX THEM
This commit is contained in:
parent
7a43a812bf
commit
9d0764dadb
2 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||||
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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue