Re: [rspec-users] Recall a example inside another (just like in Cucumber)

2010-02-18 Thread Phillip Koebbe
On 18 Feb 2010, at 19:33, Marcelo de Moraes Serpa wrote: Hello guys, I was spec'ing a model and just tried to do something like this it "should create a payment with period_start & period_end set correctly" do it "should create a new payment for an approved transaction"

Re: [rspec-users] Recall a example inside another (just like in Cucumber)

2010-02-18 Thread Matt Wynne
On 18 Feb 2010, at 19:33, Marcelo de Moraes Serpa wrote: Hello guys, I was spec'ing a model and just tried to do something like this it "should create a payment with period_start & period_end set correctly" do it "should create a new payment for an approved transaction"

[rspec-users] Recall a example inside another (just like in Cucumber)

2010-02-18 Thread Marcelo de Moraes Serpa
Hello guys, I was spec'ing a model and just tried to do something like this it "should create a payment with period_start & period_end set correctly" do it "should create a new payment for an approved transaction" previous_payment = Payment.find(Payment.last.id-1) jus