1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Taken out as noradio took over

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-01-08 23:41:42 +00:00
parent df79e135ac
commit 0b6fe2244e

View file

@ -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)