[rspec-devel] [ rspec-Bugs-6547 ] should_be_redirect broken in 0.7.0

noreply at rubyforge.org noreply at rubyforge.org
Tue Nov 7 14:25:42 EST 2006


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

Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jay Levitt (jaylev)
Assigned to: Nobody (None)
Summary: should_be_redirect broken in 0.7.0

Initial Comment:
A bunch of specs started failing in 0.7.0.  A quick check shows that the following spec fails on .should_be_redirect, which should_be_impossible, since the .should_redirect_to (which I've just added) succeeds.  The controller code is a simple redirect_to.

context "The HarkController" do
  controller_name :hark
  integrate_views
  fixtures :hark_users
  
  specify "should allow Vlad the valid user to log in" do
    controller.should_redirect_to :action => 'index'
    post :login, :hark => {:username => "vlad", :password => "atest"}
    response.should_be_redirect
  end
  
end

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

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


More information about the rspec-devel mailing list