From 9830ebbeaf6f7faead9b4503ed9c9ab0a327df9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 16 Jul 2014 14:13:42 -0300 Subject: No need to have a file to PartialIteration class This class is only used on the PartialRenderer. --- actionview/test/template/partial_iteration_test.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'actionview/test/template') 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 -- cgit v1.2.3