Browse files

no need of nil check

  • Loading branch information...
1 parent 299e9f6 commit 8efdffeda31b520b9b534dc614c6039404288c26 Neeraj Singh committed with tenderlove Sep 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/test_case.rb
View
2 actionpack/lib/action_controller/test_case.rb
@@ -394,7 +394,7 @@ def process(action, parameters = nil, session = nil, flash = nil, http_method =
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

0 comments on commit 8efdffe

Please sign in to comment.