Permalink
Browse files

Fix tests

  • Loading branch information...
1 parent 5d76dee commit d54d97b07c1b258f42210b1a3fc2e8c56e434ee9 @jeremy jeremy committed Mar 13, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/test/template/body_parts_test.rb
View
8 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 @@ def edge_side_include(job)
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 @@ def test_concurrent_threaded_parts
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 @@ def index
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

0 comments on commit d54d97b

Please sign in to comment.