Commit 3260bada authored by Braulio Martinez's avatar Braulio Martinez

Remove posts#new action from Rails and related tests

parent 051adfde
......@@ -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?
......
-# 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;"}
\ No newline at end of file
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment