Permalink
Browse files

Cleaned up deprecation warnings regarding sessions and breakpoint_ser…

…ver. Updated functional tests to remove now-unnecessary code.
  • Loading branch information...
1 parent 3a19970 commit 465c3357be3c11f68193e5ecda828667ca5c1040 @r00k r00k committed Sep 12, 2009
@@ -2,6 +2,4 @@
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
- # Pick a unique cookie name to distinguish our session data from others'
- session :session_key => '_myapp_session'
end
@@ -8,9 +8,6 @@
# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
-# Enable the breakpoint server that script/breakpointer connects to
-config.breakpoint_server = true
-
# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
@@ -1,15 +1,8 @@
require File.dirname(__FILE__) + '/../test_helper'
-require 'comments_controller'
-
-# Re-raise errors caught by the controller.
-class CommentsController; def rescue_action(e) raise e end; end
class CommentsControllerTest < ActionController::TestCase
def setup
- @controller = CommentsController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @comment = Comment.find 1
+ @comment = Comment.find 1
end
context "with parent post" do
@@ -1,14 +1,7 @@
require File.dirname(__FILE__) + '/../test_helper'
-require 'images_controller'
-
-# Re-raise errors caught by the controller.
-class ImagesController; def rescue_action(e) raise e end; end
class ImagesControllerTest < ActionController::TestCase
def setup
- @controller = ImagesController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
@image = images :one
end
@@ -1,15 +1,8 @@
require File.dirname(__FILE__) + '/../test_helper'
-require 'people_controller'
-
-# Re-raise errors caught by the controller.
-class PeopleController; def rescue_action(e) raise e end; end
class PeopleControllerTest < ActionController::TestCase
def setup
- @controller = PeopleController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @person = accounts :one
+ @person = accounts :one
end
should_be_restful do |resource|
@@ -1,15 +1,8 @@
require File.dirname(__FILE__) + '/../test_helper'
-require 'photos_controller'
-
-# Re-raise errors caught by the controller.
-class PhotosController; def rescue_action(e) raise e end; end
class PhotosControllerTest < ActionController::TestCase
def setup
- @controller = PhotosController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @photo = Photo.find 1
+ @photo = Photo.find 1
end
context "actions specified" do
@@ -1,15 +1,8 @@
require File.dirname(__FILE__) + '/../test_helper'
-require 'posts_controller'
-
-# Re-raise errors caught by the controller.
-class PostsController; def rescue_action(e) raise e end; end
class PostsControllerTest < ActionController::TestCase
def setup
- @controller = PostsController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @post = Post.find 1
+ @post = Post.find 1
end
should_be_restful do |resource|
@@ -1,15 +1,8 @@
require File.dirname(__FILE__) + '/../test_helper'
-require 'projects_controller'
-
-# Re-raise errors caught by the controller.
-class ProjectsController; def rescue_action(e) raise e end; end
class ProjectsControllerTest < ActionController::TestCase
def setup
- @controller = ProjectsController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @project = projects :one
+ @project = projects :one
end
should_be_restful do |resource|
@@ -1,15 +1,8 @@
require File.dirname(__FILE__) + '/../test_helper'
-require 'somethings_controller'
-
-# Re-raise errors caught by the controller.
-class SomethingsController; def rescue_action(e) raise e end; end
class SomethingsControllerTest < ActionController::TestCase
def setup
- @controller = SomethingsController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @something = somethings :one
+ @something = somethings :one
end
context "actions specified" do
@@ -1,15 +1,8 @@
require File.dirname(__FILE__) + '/../test_helper'
-require 'tags_controller'
-
-# Re-raise errors caught by the controller.
-class TagsController; def rescue_action(e) raise e end; end
class TagsControllerTest < ActionController::TestCase
def setup
- @controller = TagsController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @tag = Tag.find 1
+ @tag = Tag.find 1
end
context "with photo as parent" do
@@ -1,15 +1,8 @@
require File.dirname(__FILE__) + '/../test_helper'
-require 'users_controller'
-
-# Re-raise errors caught by the controller.
-class UsersController; def rescue_action(e) raise e end; end
class UsersControllerTest < ActionController::TestCase
def setup
- @controller = UsersController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @dude = accounts :one
+ @dude = accounts :one
end
should_be_restful do |resource|

0 comments on commit 465c335

Please sign in to comment.