search for: should_redirect

Displaying 3 results from an estimated 3 matches for "should_redirect".

2007 Jun 12
3
rspec 1.0.x and liquid?
Is anyone else using liquid with the > 1 rspec? This seems to fail: it ''should render show'' do response.should render_template(''buyers/show'') get :show, :id => 1 end with an error like 1) NoMethodError in ''/buyer GET should render show'' You have a nil object when you didn''t expect it! The error occurred
2007 May 09
4
UI testing framework? (w/o selenium)
...page.should_have :div, :class => ''something else'' page.should_have :div, :id => ''foo'', :class => ''bar'' page.should_have ''/div[1]/div[2]/td'' end test ''/some/url.html?id=35'' do page.should_redirect :to => ''/foobar.html'' end end -- Tim Tischler ttischler at homeaway.com tischler at purplecoffeecup.com 512-565-4750 AIM:tjtischler512 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/2007...
2005 Aug 17
4
Stop an action ?
Hi. I am working on a generic authentification system for rails (more complete than the login generator). The way it works is you call a method inside your action, passing the domain as a parameter (domains are like a group of users with specific rights). For that purpose, I need to exit the action inside this method because it redirects to a login page if that person isn''t