aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-09-06 21:42:05 -0500
committerJoshua Peek <josh@joshpeek.com>2009-09-06 21:42:05 -0500
commit9f47f8d892ee35a08b5556acc4ddbe93b0461cfd (patch)
treecb3bd3d58fb9bf006826ec4ef710c1b6540e1c36 /actionpack
parent1c02fc295dc8281b8c3352bdd95869d5421aff08 (diff)
downloadrails-9f47f8d892ee35a08b5556acc4ddbe93b0461cfd.tar.gz
rails-9f47f8d892ee35a08b5556acc4ddbe93b0461cfd.tar.bz2
rails-9f47f8d892ee35a08b5556acc4ddbe93b0461cfd.zip
Fix isolated running of AddressesTest
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/addresses_render_test.rb8
-rw-r--r--actionpack/test/lib/controller/fake_controllers.rb1
2 files changed, 3 insertions, 6 deletions
diff --git a/actionpack/test/controller/addresses_render_test.rb b/actionpack/test/controller/addresses_render_test.rb
index 2d2a2745b0..c1cd22113d 100644
--- a/actionpack/test/controller/addresses_render_test.rb
+++ b/actionpack/test/controller/addresses_render_test.rb
@@ -1,5 +1,6 @@
require 'abstract_unit'
require 'logger'
+require 'controller/fake_controllers'
class Address
def Address.count(conditions = nil, join = nil)
@@ -15,13 +16,8 @@ class Address
end
end
-class AddressesTestController < ActionController::Base
- def self.controller_name; "addresses"; end
- def self.controller_path; "addresses"; end
-end
-
class AddressesTest < ActionController::TestCase
- tests AddressesTestController
+ tests AddressesController
def setup
super
diff --git a/actionpack/test/lib/controller/fake_controllers.rb b/actionpack/test/lib/controller/fake_controllers.rb
index d41547b902..e7589e29ca 100644
--- a/actionpack/test/lib/controller/fake_controllers.rb
+++ b/actionpack/test/lib/controller/fake_controllers.rb
@@ -10,6 +10,7 @@ module Admin
class NewsFeedController < ActionController::Base; end
end
class ElsewhereController < ActionController::Base; end
+class AddressesController < ActionController::Base; end
# For speed test
class SpeedController < ActionController::Base; end