Displaying 1 result from an estimated 1 matches for "harkcontroller".
2006 Nov 07
7
should_redirect_to in advance - feels unnatural
I can understand that it''s easier for rspec to set up a mock in advance 
of the controller call.  But it makes it difficult to do something like:
context "The HarkController, given Louie the logged-in user" do
  setup do
    post :login, :username => ''louie'', :password => ''atest''
  end
  specify "should redirect Louie to the home page"...
  specify "should set Louie to be the current user"...
end
In...