Skip to content

Commit

Permalink
This spec is non-functional; render :widget does not actually work wi…
Browse files Browse the repository at this point in the history
…thin render :update.
  • Loading branch information
John Firebaugh committed Jun 2, 2010
1 parent db36938 commit f1d2222
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions spec/rails_root/spec/render_spec.rb
Expand Up @@ -172,12 +172,6 @@ def render_reserved_variable
render :template => "test/implicit_assigns.html.rb"
end

def render_rjs_with_widget
render :update do |page|
page.insert_html :top, 'foobar', render(:widget => TestFormWidget)
end
end

def render_with_needs
@foo = "foo"
@bar = "bar"
Expand Down Expand Up @@ -333,10 +327,6 @@ def test_action(action)
proc { test_action(:render_reserved_variable) }.should raise_error(ActionView::TemplateError, /indentation is a reserved variable name/)
end

it "should render updates while overriding RJS output_buffer changes" do
test_action(:render_rjs_with_widget).should include("Element.insert")
end

it "should allow rendering widget with needs" do
proc { test_action(:render_with_needs) }.should_not raise_error
end
Expand Down

0 comments on commit f1d2222

Please sign in to comment.