diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-09-30 02:22:00 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-30 08:11:34 +0800 |
commit | 8efdffeda31b520b9b534dc614c6039404288c26 (patch) | |
tree | 1b5585c4539af2b38c455bc8a686d1eb3e381fde /actionpack/lib | |
parent | 299e9f692798f502bd74d16655b611bccf520620 (diff) | |
download | rails-8efdffeda31b520b9b534dc614c6039404288c26.tar.gz rails-8efdffeda31b520b9b534dc614c6039404288c26.tar.bz2 rails-8efdffeda31b520b9b534dc614c6039404288c26.zip |
no need of nil check
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 70a5de7f30..1af75fc2d7 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -394,7 +394,7 @@ module ActionController parameters ||= {} @request.assign_parameters(@routes, @controller.class.name.underscore.sub(/_controller$/, ''), action.to_s, parameters) - @request.session = ActionController::TestSession.new(session) unless session.nil? + @request.session = ActionController::TestSession.new(session) if session @request.session["flash"] = @request.flash.update(flash || {}) @request.session["flash"].sweep |