Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Removing old Controller test #5021

Merged
merged 1 commit into from

2 participants

Thiago Pradi José Valim
Thiago Pradi

Hi Guys,

This patch removes an old controller test. This test was made in 2005, to fix a scaffold bug, and became outdated after some code changes. (outdated means that the code with problem was removed).

José Valim josevalim merged commit 97f7f30 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 12, 2012
  1. Thiago Pradi

    Removing old Controller test

    tchandy authored
This page is out of date. Refresh to see the latest.
37 actionpack/test/controller/addresses_render_test.rb
View
@@ -1,37 +0,0 @@
-require 'abstract_unit'
-require 'active_support/logger'
-require 'controller/fake_controllers'
-
-class Address
- class << self
- def count(conditions = nil, join = nil)
- nil
- end
-
- def find_all(arg1, arg2, arg3, arg4)
- []
- end
-
- def find(*args)
- []
- end
- end
-end
-
-class AddressesTest < ActionController::TestCase
- tests AddressesController
-
- def setup
- super
- # enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
- # a more accurate simulation of what happens in "real life".
- @controller.logger = ActiveSupport::Logger.new(nil)
-
- @request.host = "www.nextangle.com"
- end
-
- def test_list
- get :list
- assert_equal "We only need to get this far!", @response.body.chomp
- end
-end
1  actionpack/test/fixtures/addresses/list.erb
View
@@ -1 +0,0 @@
-We only need to get this far!
1  actionpack/test/lib/controller/fake_controllers.rb
View
@@ -14,7 +14,6 @@ class ProductsController < ActionController::Base; end
end
class AccountController < ActionController::Base; end
-class AddressesController < ActionController::Base; end
class ArchiveController < ActionController::Base; end
class ArticlesController < ActionController::Base; end
class BarController < ActionController::Base; end
Something went wrong with that request. Please try again.