aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_process.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/test_process.rb')
-rw-r--r--actionpack/lib/action_controller/test_process.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index e3ab045a12..3d9a335eff 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -168,7 +168,7 @@ module ActionController #:nodoc:
# do we have a flash?
def has_flash?
- !session['flash'].nil?
+ !session['flash'].empty?
end
# do we have a flash that has contents?
@@ -283,4 +283,4 @@ module Test
end
end
end
-end \ No newline at end of file
+end