diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-17 11:38:01 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-17 11:38:01 +0000 |
commit | dca7efa67ec12b986ed03844af588055c9d8bdb9 (patch) | |
tree | 13207b1dce3af68528ddfe11d32ee98f627eb0a0 /actionpack/lib/action_view | |
parent | d5b67ed8d33dbde44d24d7d93135261062e550d1 (diff) | |
download | rails-dca7efa67ec12b986ed03844af588055c9d8bdb9.tar.gz rails-dca7efa67ec12b986ed03844af588055c9d8bdb9.tar.bz2 rails-dca7efa67ec12b986ed03844af588055c9d8bdb9.zip |
Deprecated the majority of all the testing assertions and replaced them with a much smaller core and access to all the collections the old assertions relied on. That way the regular test/unit assertions can be used against these. Added documentation about how to use it all.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 2c906b90ba..cffbbfcb6b 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -119,7 +119,7 @@ module ActionView #:nodoc: class Base include ERB::Util - attr_reader :first_render + attr_reader :first_render attr_accessor :base_path, :assigns, :template_extension attr_accessor :controller @@ -157,7 +157,7 @@ module ActionView #:nodoc: end def initialize(base_path = nil, assigns_for_first_render = {}, controller = nil)#:nodoc: - @base_path, @assigns = base_path, assigns_for_first_render + @base_path, @assigns = base_path, assigns_for_first_render.with_indifferent_access @controller = controller end |