now i use webrat for cucumber scenario testing. i have a page with a form, which will post to a bank payment gateway. that is,
<form action="http://www.abank.com/pay/blablabla"> ... <input type=submit name="sbm" value="confirm"/> </form> my scenario step script is: == And I press "confirm" == then I got such an error: "No route matches "/pay/blablabla" with {:method=>:post}..." i think webrat or rails ignore the "http://www.abank.com" prefix automatically. and then i wrote a test script == get "http://www.abank.com/.." puts response.body == yes, the test result proves the suspicion. i think it should be handled in the rails testing layer. so, anybody can help me? thanks in advance. -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users