diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-08 23:41:42 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-08 23:41:42 +0000 |
commit | 0b6fe2244e2b5b13fa7bc9e0dc773c425d19fd59 (patch) | |
tree | e8821d1fa8935cd078a068c4a722a6a72ed3fb19 /actionpack/test/controller | |
parent | df79e135ac10e3570415628d14e4e82c32dde855 (diff) | |
download | rails-0b6fe2244e2b5b13fa7bc9e0dc773c425d19fd59.tar.gz rails-0b6fe2244e2b5b13fa7bc9e0dc773c425d19fd59.tar.bz2 rails-0b6fe2244e2b5b13fa7bc9e0dc773c425d19fd59.zip |
Taken out as noradio took over
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/filters_test.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/actionpack/test/controller/filters_test.rb b/actionpack/test/controller/filters_test.rb index 382109505c..ae079c8624 100644 --- a/actionpack/test/controller/filters_test.rb +++ b/actionpack/test/controller/filters_test.rb @@ -15,24 +15,6 @@ class FilterTest < Test::Unit::TestCase end end - class LimitedFilterController < ActionController::Base - before_filter :ensure_login, :for => :show - - def show - render_text "ran action" - end - - def show_without_filter - render_text "ran action without filter" - end - - private - def ensure_login - @ran_filter ||= [] - @ran_filter << "ensure_login" - end - end - class PrependingController < TestController prepend_before_filter :wonderful_life @@ -144,11 +126,6 @@ class FilterTest < Test::Unit::TestCase assert test_process(AuditController).template.assigns["was_audited"] end - def test_running_limited_filters - assert_equal %w( fire_flash ensure_login ), test_process(LimitedFilterController, "show").template.assigns["ran_filter"] - assert_equal %w( fire_flash ), test_process(LimitedFilterController, "show_without_filter").template.assigns["ran_filter"] - end - def test_bad_filter assert_raises(ActionController::ActionControllerError) { test_process(BadFilterController) |