diff --git a/spec/controllers/posts_controller_spec.rb b/spec/controllers/posts_controller_spec.rb index 9c97dd1c4..8ab8d8493 100644 --- a/spec/controllers/posts_controller_spec.rb +++ b/spec/controllers/posts_controller_spec.rb @@ -30,6 +30,11 @@ describe PostsController do response.should be_success end + it 'renders the application layout on mobile' do + get :show, :id => @message.id, :format => :mobile + response.should render_template('layouts/application') + end + it 'succeeds on mobile with a reshare' do get :show, "id" => Factory(:reshare, :author => alice.person).id, :format => :mobile response.should be_success