[rspec-devel] [ rspec-Bugs-6896 ] should_render fails with respond_to

noreply at rubyforge.org noreply at rubyforge.org
Sun Nov 26 19:20:11 EST 2006


Bugs item #6896, was opened at 2006-11-26 18:40
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6896&group_id=797

Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Pat Maddox (pergesu)
Assigned to: David Chelimsky (dchelimsky)
Summary: should_render fails with respond_to

Initial Comment:
Spec:

  specify "should show the form" do
    controller.should_render :template => "people/new"
  end

Controller code:

  def new
    @person = Person.new
    
    respond_to do |format|
      format.html
    end
  end

Failure:

{:template=>"people/new"} should == {:action=>"new", :content_type=>#<Mime::Type:0x14c2c04 @synonyms=["application/xhtml+xml"], @symbol=:html, @string="text/html">}

----------------------------------------------------------------------

>Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2006-11-26 19:20

Message:
versions????

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6896&group_id=797


More information about the rspec-devel mailing list