[rspec-users] Can't test for page content after a redirect

2008-08-07 Thread Christian Lescuyer
I'm trying to verify that data entered in a form has been saved in the database. Scenario: User enters a bookmark URL Given a bookmark 'http://www.gotapi.com/rubyrails' When the user adds the bookmark Then should redirect to '/' And the page should contain 'http://www.gotapi.com/

Re: [rspec-users] Can't test for page content after a redirect

2008-08-07 Thread Christian Lescuyer
Thanks! I will try this tomorrow. Xtian -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Can't test for page content after a redirect

2008-08-08 Thread Christian Lescuyer
Thanks Zach! It worked like a charm. Finally I used: Scenario: User enters a bookmark URL When the user adds 'http://www.gotapi.com/rubyrails' as a bookmark Then the database should have a bookmark with url 'http://www.gotapi.com/rubyrails' And the page should contain 'http://www.