diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-16 14:13:42 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-16 14:50:51 -0300 |
commit | 9830ebbeaf6f7faead9b4503ed9c9ab0a327df9a (patch) | |
tree | e3d6f75c2f62eb96b023980092c3deafe3ddccd1 /actionview/test/template | |
parent | 1f5b360466c3494267cc9aad08a19d1ace4763d8 (diff) | |
download | rails-9830ebbeaf6f7faead9b4503ed9c9ab0a327df9a.tar.gz rails-9830ebbeaf6f7faead9b4503ed9c9ab0a327df9a.tar.bz2 rails-9830ebbeaf6f7faead9b4503ed9c9ab0a327df9a.zip |
No need to have a file to PartialIteration class
This class is only used on the PartialRenderer.
Diffstat (limited to 'actionview/test/template')
-rw-r--r-- | actionview/test/template/partial_iteration_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actionview/test/template/partial_iteration_test.rb b/actionview/test/template/partial_iteration_test.rb index 3976c855ae..af0dde96c3 100644 --- a/actionview/test/template/partial_iteration_test.rb +++ b/actionview/test/template/partial_iteration_test.rb @@ -1,7 +1,7 @@ require 'abstract_unit' -require 'action_view/partial_iteration' -class PartialIterationTest < ActiveSupport::TestCase +require 'action_view/renderer/partial_renderer' +class PartialIterationTest < ActiveSupport::TestCase def test_has_size_and_index iteration = ActionView::PartialIteration.new 3, 0 assert_equal 0, iteration.index, "should be at the first index" @@ -27,5 +27,4 @@ class PartialIterationTest < ActiveSupport::TestCase iteration = ActionView::PartialIteration.new 3, 0 assert !iteration.last?, "not last when current is 0" end - end |