diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-02-19 21:21:34 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-02-19 21:21:34 -0600 |
commit | 9702636a08e50e9fed9bf76ad620a6a0a109009e (patch) | |
tree | bef0f974a77fb990527503ba8057f34ec09eca02 /actionpack/test/controller | |
parent | 3668a641702b6d0e5df963f54de8d17c53d6179c (diff) | |
download | rails-9702636a08e50e9fed9bf76ad620a6a0a109009e.tar.gz rails-9702636a08e50e9fed9bf76ad620a6a0a109009e.tar.bz2 rails-9702636a08e50e9fed9bf76ad620a6a0a109009e.zip |
Lazy evaluate ActionController session store middleware class to pickup custom plugin session stores [#2001 state:resolved]
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/middleware_stack_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/controller/middleware_stack_test.rb b/actionpack/test/controller/middleware_stack_test.rb index 2a141697da..612a710fa7 100644 --- a/actionpack/test/controller/middleware_stack_test.rb +++ b/actionpack/test/controller/middleware_stack_test.rb @@ -73,4 +73,11 @@ class MiddlewareStackTest < ActiveSupport::TestCase end end end + + test "lazy evaluates middleware class" do + assert_difference "@stack.size" do + @stack.use lambda { BazMiddleware } + end + assert_equal BazMiddleware, @stack.last.klass + end end |