aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_case.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-06 15:50:06 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-06 15:50:47 -0800
commit1c09c29a0958eac86fffede00f30a1bee36d09a9 (patch)
tree47c2ea4a169ca03da4e7fe8214bd6080447b1938 /actionpack/lib/action_controller/test_case.rb
parentb15d2c0708b78ee1c8ad6958022214bda18bdbae (diff)
downloadrails-1c09c29a0958eac86fffede00f30a1bee36d09a9.tar.gz
rails-1c09c29a0958eac86fffede00f30a1bee36d09a9.tar.bz2
rails-1c09c29a0958eac86fffede00f30a1bee36d09a9.zip
register spec subclasses for people who spec
Diffstat (limited to 'actionpack/lib/action_controller/test_case.rb')
-rw-r--r--actionpack/lib/action_controller/test_case.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index 05e9362463..52bfcb3cc4 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -326,6 +326,12 @@ module ActionController
#
# assert_redirected_to page_url(:title => 'foo')
class TestCase < ActiveSupport::TestCase
+
+ # Use AS::TestCase for the base class when describing a model
+ register_spec_type(self) do |desc|
+ desc < ActionController::Base
+ end
+
module Behavior
extend ActiveSupport::Concern
include ActionDispatch::TestProcess