[rspec-devel] [ rspec-Bugs-6895 ] should_render :action doesn't seem to work

noreply at rubyforge.org noreply at rubyforge.org
Sun Nov 26 18:44:34 EST 2006


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

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Pat Maddox (pergesu)
Assigned to: Nobody (None)
Summary: should_render :action doesn't seem to work

Initial Comment:
0.7.3, edge rails, if I do

  specify "should show the form" do
    controller.should_render :action => "new"
  end

Then I get {:action=>"new"} should == {:template=>"people/new"}.  Doing should_render :template => "people/new" works fine.

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

>Comment By: Pat Maddox (pergesu)
Date: 2006-11-26 16:44

Message:
The controller code is the very simple

  def new
    @person = Person.new
  end

with a corresponding new.rhtml file.

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

Comment By: David Chelimsky (dchelimsky)
Date: 2006-11-26 16:36

Message:
What is in the controller code?

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

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


More information about the rspec-devel mailing list