Skip to content

Commit

Permalink
Removing unnecessary code from render_test
Browse files Browse the repository at this point in the history
Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
thiagopradi authored and josevalim committed Sep 2, 2010
1 parent 08187ef commit 7698596
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions actionpack/test/template/render_test.rb
Expand Up @@ -69,8 +69,6 @@ def test_render_file_not_using_full_path_with_dot_in_path
end end


def test_render_update def test_render_update
# TODO: You should not have to stub out template because template is self!
@view.instance_variable_set(:@template, @view)
assert_equal 'alert("Hello, World!");', @view.render(:update) { |page| page.alert('Hello, World!') } assert_equal 'alert("Hello, World!");', @view.render(:update) { |page| page.alert('Hello, World!') }
end end


Expand Down

0 comments on commit 7698596

Please sign in to comment.