diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-20 15:12:38 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-20 15:12:38 +0100 |
commit | 6c57177f2c7f4f934716d588545902d5fc00fa99 (patch) | |
tree | dd5fe4b2e1ab708fdc9aa4324ca382de87da9cf3 /actionpack/test/controller | |
parent | cae1768c6a0e3d1cd4a2c2d836ef213438689db6 (diff) | |
download | rails-6c57177f2c7f4f934716d588545902d5fc00fa99.tar.gz rails-6c57177f2c7f4f934716d588545902d5fc00fa99.tar.bz2 rails-6c57177f2c7f4f934716d588545902d5fc00fa99.zip |
Remove deprecation warnings from Action Pack.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index f42a04d670..768cfb34ac 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -43,7 +43,7 @@ class TestController < ActionController::Base end def hello_world_file - render :file => File.expand_path("../../fixtures/hello.html", __FILE__) + render :file => File.expand_path("../../fixtures/hello", __FILE__), :formats => [:html] end def conditional_hello @@ -810,9 +810,7 @@ class RenderTest < ActionController::TestCase end def test_render_file - assert_deprecated do - get :hello_world_file - end + get :hello_world_file assert_equal "Hello world!", @response.body end |