diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-13 03:01:47 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-13 03:01:47 -0700 |
commit | d54d97b07c1b258f42210b1a3fc2e8c56e434ee9 (patch) | |
tree | 108eb512526f1ab15eb6666e60ee58831e08d0c1 /actionpack | |
parent | 5d76dee329282acc918de50fecde869f1431e2f1 (diff) | |
download | rails-d54d97b07c1b258f42210b1a3fc2e8c56e434ee9.tar.gz rails-d54d97b07c1b258f42210b1a3fc2e8c56e434ee9.tar.bz2 rails-d54d97b07c1b258f42210b1a3fc2e8c56e434ee9.zip |
Fix tests
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/template/body_parts_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/template/body_parts_test.rb b/actionpack/test/template/body_parts_test.rb index 88f09af94f..7418f4a716 100644 --- a/actionpack/test/template/body_parts_test.rb +++ b/actionpack/test/template/body_parts_test.rb @@ -1,6 +1,6 @@ require 'abstract_unit' require 'action_view/body_parts/queued' -require 'action_view/body_parts/open_uri' +require 'action_view/body_parts/threaded' class OutputBufferTest < ActionController::TestCase class TestController < ActionController::Base @@ -73,7 +73,7 @@ class QueuedPartTest < ActionController::TestCase def test_queued_parts get :index - expected = %(oof rab zab).map { |receipt| EdgeSideInclude.redemption_tag(receipt) } + expected = %w(oof rab zab).map { |receipt| EdgeSideInclude.redemption_tag(receipt) }.join assert_equal expected, @response.body end end @@ -125,7 +125,7 @@ end class OpenUriPartTest < ActionController::TestCase - class OpenUri < ActionView::BodyParts::Threaded + class OpenUriPart < ActionView::BodyParts::Threaded def initialize(url) url = URI::Generic === url ? url : URI.parse(url) super(true) { |parts| parts << url.read } @@ -143,7 +143,7 @@ class OpenUriPartTest < ActionController::TestCase def render_url(url) url = URI.parse(url) def url.read; path end - response.template.punctuate_body! ActionView::BodyParts::OpenUri.new(url) + response.template.punctuate_body! OpenUriPart.new(url) end end |