When I run functional tests for my project (under Rails 1.2.2), I get the
following deprecation warnings:
Started
DEPRECATION WARNING: @flash is deprecated! Call flash.is_a? instead of @flash.is_a?. Args: [ActionView::Base::ObjectWrapper] See http://www.rubyonrails.org/deprecation for details. (called from add_object_to_local_assigns! at /Users/rafeco/seymour/config/../vendor/rails/actionpack/lib/action_view/partials.rb:121)
...DEPRECATION WARNING: @flash is deprecated! Call flash.is_a? instead of @flash.is_a?. Args: [ActionView::Base::ObjectWrapper] See http://www.rubyonrails.org/deprecation for details. (called from add_object_to_local_assigns! at /Users/rafeco/seymour/config/../vendor/rails/actionpack/lib/action_view/partials.rb:121)
.
Finished in 0.095503 seconds.
The warnings are presented when I render the following partial in my layout:
<% if self.flash[:success] %>
<div class="feedback_banner success"><%= self.flash[:success] %></div>
<% end %>
<% if self.flash[:failure] %>
<div class="feedback_banner failure"><%= self.flash[:failure] %></div>
<% end %>
<% if self.flash[:notice] %>
<div class="feedback_banner notice"><%= self.flash[:notice] %></div>
<% end %>
If I take off the "self." in front of the calls to "flash", I get even more warnings.
It seems like these warnings are being presented incorrectly.