[rspec-users] could one scenario depend on another in cucumber?

2008-11-25 Thread Newman Huang
I think it is a common test case you would meet. For example, you want to test a user registry scenario. You write: Scenario: User Registry When I dosth Then I dosth ... And now business has some changes. Register should have to activate his account by a secret code sent by mobile phone.

Re: [rspec-users] rails associations

2008-11-25 Thread Newman Huang
hi Parker, maybe it is not an association mock problem. I view your code and I think you need to correct one place @account.stub!(:articles).and_return(@article) #=> @account.stub!(:article).and_return(@article) -- Posted via http://www.ruby-forum.com/.

Re: [rspec-users] could one scenario depend on another in cucumber?

2008-11-28 Thread Newman Huang
Matt Wynne wrote: > On 26 Nov 2008, at 03:27, Newman Huang wrote: > >> account by a secret code sent by mobile phone. So you need to write >> And I fill in "activate code" with "code" >> If you use ant to write build file, or rake task, dependency

[rspec-users] I met a trouble: cannot do a form post to an outside website

2008-12-03 Thread Newman Huang
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, http://www.abank.com/pay/blablabla";> ... my scenario step script is: == And I press "confirm" == then I got such an error: "No route matches "/pay/blablabla"

Re: [rspec-users] I met a trouble: cannot do a form post to an outside website

2008-12-04 Thread Newman Huang
Newman Huang wrote: > 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, > > http://www.abank.com/pay/blablabla";> >... > > > > my scenario step script is: > > == >

Re: [rspec-users] proxy associantion on controllers

2008-12-05 Thread Newman Huang
try: [EMAIL PROTECTED] = User.find(params[:user_id]) User.stub(:find).with(xx).and_return(@user) -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users