Remove posts#new action from Rails and related tests
This commit is contained in:
parent
051adfde45
commit
3260bada38
4 changed files with 0 additions and 18 deletions
|
|
@ -24,10 +24,6 @@ class PostsController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
def new
|
||||
redirect_to "/stream"
|
||||
end
|
||||
|
||||
def show
|
||||
mark_corresponding_notification_read if user_signed_in?
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
-# Copyright (c) 2010-2012, Diaspora Inc. This file is
|
||||
-# licensed under the Affero General Public License version 3 or later. See
|
||||
-# the COPYRIGHT file.
|
||||
|
||||
%iframe{:src =>"/posts/new", :height => 500, :width => 980, :style => "border:none;"}
|
||||
|
|
@ -28,8 +28,6 @@ Diaspora::Application.routes.draw do
|
|||
resources :comments, :only => [:new, :create, :destroy, :index]
|
||||
end
|
||||
|
||||
match "/framer" => redirect("/posts/new")
|
||||
|
||||
get 'p/:id' => 'posts#show', :as => 'short_post'
|
||||
get 'posts/:id/iframe' => 'posts#iframe', :as => 'iframe'
|
||||
|
||||
|
|
|
|||
|
|
@ -53,13 +53,6 @@ describe StatusMessagesController do
|
|||
end
|
||||
end
|
||||
|
||||
describe '#new_bookmarklet' do
|
||||
it 'works' do
|
||||
get :new_bookmarklet
|
||||
response.should be_success
|
||||
end
|
||||
end
|
||||
|
||||
describe '#new' do
|
||||
it 'succeeds' do
|
||||
get :new,
|
||||
|
|
|
|||
Loading…
Reference in a new issue